Dear Kambiz,
The script itself looks perfectly fine to me. It might be something
with your SPM installation or again a platform-specific problem. Maybe
Guillaume and others will have an answer.
Best,
Vladimir
On 1 Oct 2009, at 21:45, Kambiz Tavabi wrote:
> Dear SPMers,
> I have two light hearted (that is naive) issues I'd like to get your
> input on:
> (1) while attempting to run the attached script I get the following
> error
>>> Error in ==> spm at 286
>>> Modalities = {'PET','FMRI','EEG'};
>>> ??? Output argument "varargout" (and maybe others) not assigned
>>> during call to
>>> "/mnt/meglab_san/tavabik/matlab/spm8/spm.m>spm".
> I cannot figure this out. I can successfully execute all the
> commands in my
> little script at the terminal, but calling/running the script
> produces the
> error. I have essentially put the script together using the history
> generated by spm, and have tried it with and without the initial
> command
> "spm('defaults','eeg') to no avail.
> (2) A completely separate matter; is there any way to specify the SPM
> graphics window to open in the same screen matlab is running in on a
> dual
> screen linux machine running Cent OS5?
>
> Thank you
> Kambiz
> spm('defaults','eeg');
>
> % read in user defined file list
> [Nfiles, FileList,temp, BatchFilePath] = ReadFileNames([], '*.lst');
> clear temp;
>
> S = [];
> for f=1:Nfiles,
> [pth,ifile,ext] = fileparts(strcat(FileList(f,:)));
> S(f).dataset = strcat(pth,'/',ifile,ext);
> S(f).continuous = 1;
> S(f).timewindow = [0.000833333333333333 840];
> S(f).checkboundary = 0;
> S(f).inputformat = [];
> S(f).chanfile = '/mnt/meglab_san/tavabik/CHOP/data/NIH6/MEGdata/
> CHOP_NIH5_Ctf-meg-chs.mat';
> S(f).save = 1;
> S(f).outfile = strcat('spm8_',ifile);
> S(f).blocksize = 3276800;
> S(f).usetrials = 1;
> S(f).datatype = 'float32-le';
> S(f).eventpadding = 0;
> S(f).saveorigheader = 0;
> S(f).conditionlabel = {'Undefined'};
> D = spm_eeg_convert(S(f));
> end
>
|