This is exactly the same problem as reported by me this morning. There must
be something in spm8 producing false errors, even though the actual script
spm_run_fmri_spec.m when run in isolation doesn't report any errors. It's
very strange indeed! So far nobody has come up with any explanation to
it...
All the best,
Iwo
On Aug 13 2010, Rebecca Halchuk wrote:
>Hello,
>
>After having to reinstall MATLAB and SPM8, my multiple conditions files
>(for my first level design) that were previously working now fail.
>
>I get the following error when I try to run my batch:
>
>Error using ==> spm_run_fmri_spec at 126
>Cannot load C:\Couples study\Documentation\multiple conditions run1.txt
>In file "C:\Program Files\MATLAB
>scripts\spm8\config\spm_run_fmri_spec.m" (v3757), function
>"spm_run_fmri_spec" at line 126.
>
>Where line 126 refers to:
>
>error('Cannot load %s',sess.multi{1});
> end
> if ~(isfield(multicond,'names')&&isfield(multicond,'onsets')&&...
> isfield(multicond,'durations')) || ...
> ~all([numel(multicond.names),numel(multicond.onsets), ...
> numel(multicond.durations)]==numel(multicond.names))
> error(['Multiple conditions MAT-file ''%s'' is invalid.\n',...
> 'File must contain names, onsets, and durations '...
> 'cell arrays of equal length.\n'],sess.multi{1});
> end
>
>
>Does anyone have any advice on this matter? I have tried making .m files,
>but the batch won't recognize their presence (only text files). I have
>attached a text file for consideration.
>
>Thank you kindly,
>
>Rebecca
>
>
--
Iwo
|