Dear Jun,
It should be
S.images.elecs
Best,
Vladimir
On Wed, Oct 10, 2012 at 6:14 PM, Jun Wang <[log in to unmask]> wrote:
> Dear spm experts,
> I have a quick question regarding to batch converting TF images. I
> already calculated TF in two channels now I want to convert each channels
> to individual ROI image. I used the following scripts to specify the channel
> selection, but when I run the scripts, the channel selection window still
> pops out and lets me choose the channel. How can avoid this channel window
> selection.
>
>
> %ROI 1
> S = [];
> S.D = matfile;
> S.images.fmt = 'channels';
> S.elecs=[1];
> S.interpolate_bad = 1;
>
> P = spm_eeg_convert2images(S);
>
> %ROI 2
> S = [];
> S.D = matfile;
> S.images.fmt = 'channels';
> S.elecs=[2];
> S.interpolate_bad = 1;
>
> P = spm_eeg_convert2images(S);
>
>
>
> thanks
>
> Jun
|