Dear Bernhard,
just guessing:
U(i).name should be a cell string, but it is not. Make sure that
wherever you assign this value, it is a cell array of strings. Note,
that in code like this
my_cellstr = {'a', 'b'};
x = struct(...,'name',{my_cellstr},...)
the cell array has to be put in another cell, otherwise MATLAB will
produce a struct array x with strings in the 'name' field.
Volkmar
Am Freitag, den 12.09.2008, 16:26 +0200 schrieb Bernhard Haslinger:
> Dear SPM experts,
>
> we have tried to modifiy R. Henson's batch script for spm5 first level
> analysis.
> However, we always get the error message shown below...
>
> Can anybody figure out what could be the problem?
>
> Thank you very much for any help
>
> Bernhard
>
> SPM5: spm_fMRI_design (v$Rev: 539 $) 16:18:21 - 12/09/2008
> ----------------------------------------------------------------
> ??? Cell contents reference from a non-cell array object.
>
> Error in ==> spm_Volterra at 55
> str = sprintf('%s*bf(%i)',U(i).name{k},p);
>
> Error in ==> spm_fMRI_design at 274
> [X,Xn,Fc] = spm_Volterra(U,bf,V);
>
> Error in ==> spm_fmri_spm_ui at 213
> SPM = spm_fMRI_design(SPM);
>
> Error in ==> batch_spm5_1stlevel_neu_testBH at 172
> SPM = spm_fmri_spm_ui(SPM);
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg http://fbi.uniklinik-freiburg.de/
|