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
--
Rebecca Halchuk B.Sc., B.A.
Ph.D. Candidate, Clinical Psychology
University of Ottawa
[log in to unmask]
names = cell (1,5);
names{1} = 'ThreatCue';
names{2} = 'SafeCue';
names{3} = 'ThreatAnticipation';
names{4} = 'SafeAnticipation';
names{5} = 'EndCue';
onsets = cell (1,5);
onsets{1} = [ 35 51 91 113 145 209 249 303 313 343 363 411 ];
onsets{2} = [ 19 61 79 133 169 191 223 263 285 331 379 395 ];
onsets{3} = [ 36 52 92 114 146 210 250 304 314 344 364 412 ];
onsets{4} = [ 20 62 80 134 170 192 224 264 286 332 380 396 ];
onsets{5} = [ 24 40 58 72 88 104 126 140 156 182 204 218 246 258 276 292 308 324 336 354 376 388 406 418 ];
durations = cell (1, 5);
durations{1} = [ 1 ];
durations{2} = [ 1 ];
durations{3} = [ 4 6 12 12 10 8 8 4 10 10 12 6 ];
durations{4} = [ 4 10 8 6 12 12 12 12 6 4 8 10 ];
durations{5} = [ 1 ];
save ('partner1.mat', 'names','onsets', 'durations')
|