Dear Steve,
this is probably the result of a wrong row/column format of your inputs.
The inputs{nsub,ncon} cell should consist of a column cellstr (2x1) of
filenames, not a row cellstr (1x2). When you create this cellstr "on the
fly" by just indexing {1} or {2}, MATLAB will create a row cellstr. You
would either have to use {1,1} or {2,1} indices, or you could
preallocate the cell array before entering the filenames:
inputs{nsub,ncon} = cell(2,1);
... enter your files
Hope this helps,
Volkmar
<https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;877ed094.1003>
|