help > RE: mat2file not compiling
Sep 27, 2016  07:09 PM | Alfonso Nieto-Castanon - Boston University
RE: mat2file not compiling
Hi Kaori

That may be caused by an incomplete SPM installation. Simply make sure that: a) you have downloaded and installed all the SPM files (those may be specific for your target machine); and b) that both the SPM and the CONN directories (the folders where the files spm.m and conn.m files are located, respectively) are placed at the top of your Matlab search path (i.e. if you need to, move any references to other software packages below the spm and conn folders in the search path list).

Let me know if that seems to fix this issue
Best
Alfonso
Originally posted by Kaori Ito:
hello, 

I am running into the following error message whenever I try to run the preprocessing steps. I have not had this problem when I attempt to run my files the same way on another computer, so I thought it might have to do with where my conn has been installed? (I tried reinstalling conn directly into my spm folder, but that has not made a difference). Does anyone have any idea why my files may not be compiling?

Here is the error message:
ERROR DESCRIPTION:

Error using mat2file (line 16)
mat2file.c not compiled - see Makefile

Error in file_array/subsasgn>subfun (line 158)
mat2file(sobj,dat,va{:});

Error in file_array/subsasgn (line 85)
subfun(sobj,double(dat),args{:});

Error in spm_write_plane (line 31)
V.private.dat = subsasgn(V.private.dat,S,dat);

Error in spm_write_vol (line 84)
V = spm_write_plane(V,Y,':');

Error in conn_setup_preproc (line 1179)
spm_write_vol(a,b);

Error in conn (line 776)
ok=conn_setup_preproc('',varargin{2:end});

Error in conn (line 1501)
conn('gui_setup_preproc','select','structural');

CONN v.16.b
SPM12 + DEM FieldMap MEEGtools
Matlab v.2013b

Thank you very much!

Threaded View

TitleAuthorDate
kito24 Sep 27, 2016
Ahmad Subhani Feb 27, 2018
Yingjuan Wu Aug 24, 2018
RE: mat2file not compiling
Alfonso Nieto-Castanon Sep 27, 2016
kito24 Sep 28, 2016