Dear SPMers,
At the beginning I have to admit that I am not a SPM expert. However in
this case I think I did everything correctly or am I wrong? I wanted to use
a multiple condition facility in SPM8 while designing 1st level fMRI model.
So following the instructions I created a structure containing 3 fields (of
dimensions: 1 X 11 each) containing 3 cell arrays: - names - onsets -
durations You can see them in the attachement. However I kept getting the
error message generated by:
spm_run_fmri_spec.m
and more precisely by the following code snippet:
if ~(isfield(design,'names')&&isfield(design,'onsets')&&...
isfield(design,'durations')) || ...
~all([numel(design.names),numel(design.onsets), ...
numel(design.durations)]==numel(design.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});
else
'It is ok' end (I've added ELSE statement for test purposes, and
substituted a generic name 'multicond' by the name of my struct: 'design').
The code evaluated to 'ok'. So, how can it be possible to receive an error
message when the same code is run in spm? Any suggestions will be greatly
appreciated. Many thanks in advance Iwo
--
Iwo Bohr, PhD (Torun)
University of Cambridge
Research Centre for English and Applied Linguistics
9 West Road
Cambridge
CB3 9DP
UK
Tel: +44 1223 767 354
Fax: +44 1223 767 398
http://www.rceal.cam.ac.uk/People/Staffpages/ijb25.html
|