help > Error using ==> mat2file, preprocessing step
Oct 28, 2011  02:10 PM | Nicola Canessa - IRCCS Ospedale San Raffaele, Division of Neuroscience
Error using ==> mat2file, preprocessing step
Dear experts,
I've just started to use the "conn" toolbox. Everything works fine with the Setup, but I receive the following error message at the very beginning of the preprocessing-step. I am not expert with matlab programming, thus I wonder whether it may depend on the different size of the functional (91 109 91) vs. structural and segmented GM, WM, CSF (121 145 121) images. Of course I could try again after changing their size, but since it took hours to prepare the data and run the setup, I would appreciate so much any hint about this issue.
Thank you very much in advance,
best,
nicola

CONN: RUNNING PREPROCESSING STEP
??? Error using ==> mat2file
Subscripted assignment dimension mismatch (2).

Error in ==> file_array.subsasgn>subfun at 132
    mat2file(sobj,dat,va{:});

Error in ==> file_array.subsasgn at 70
        subfun(sobj,double(dat),args{:});

Error in ==> spm_write_plane at 33
V.private.dat = subsasgn(V.private.dat,S,dat);

Error in ==> conn_process at 705
                            V(n1)=spm_write_plane(V(n1),t,slice);

Error in ==> conn_process at 13
        case 'preprocessing_gui',disp(['CONN: RUNNING PREPROCESSING STEP']);
        conn_process([6:9],varargin{:});

Error in ==> conn at 1282
            conn_process('preprocessing_gui');

Error in ==> conn_menumanager at 116
                            feval(MM.MENU{n0}.callback{n1}{1},MM.MENU{n0}.callback{n1}{2:end});
??? Error while evaluating figure WindowButtonUpFcn

Threaded View

TitleAuthorDate
Error using ==> mat2file, preprocessing step
Nicola Canessa Oct 28, 2011
Alfonso Nieto-Castanon Oct 28, 2011
Nicola Canessa Nov 19, 2011