help > RE: Unrecognized function or variable "im"
Dec 3, 2024  10:12 AM | Alfonso Nieto-Castanon - Boston University
RE: Unrecognized function or variable "im"

Hi Vanja


That seems to be some sort of installation problem (the function conn_matc2nii.m appears not to be the original CONN function). Could you please check your Matlab path (e.g. type "pathtool" in Matlab command line) and check that CONN and SPM are both at the top of that list? (if not move them there, see the example at https://web.conn-toolbox.org/resources/c...)


Hope this helps


Alfonso


Originally posted by vanjatanasic:



 Hi Alfonso,


I keep getting this error message when trying to move from denoising to first level analysis in CONN. I only use the GUI and didn't modify the Matlab code myself at all, so I am confused as to why this error is ocurring and how I can fix it. I tried resetting the paths in Matlab to default and then re-adding the ones i need, but sadly this has not helped.


Do you have any advice as to how to resolve this? I can't seem to move forward in my analysis otherwise.


Kind regards,


Vanja


 


Unrecognized function or variable 'im'.


Error in conn_matc2nii (line 90)
nii_img = make_nii(im);
 ^^
Error in conn_process (line 1573)
 [nill,outvals]=conn_matc2nii(filename,0);
 ^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_process (line 69)
 case {'preprocessing_gui','denoising_gui'}, conn_disp(['CONN: RUNNING DENOISING STEP']); conn_process([1.5,2,6:9],varargin{:});
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn (line 7024)
 else conn_process('denoising_gui'); ispending=false;
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in conn_menumanager (line 124)
 feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end}); 
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



 

Threaded View

TitleAuthorDate
vanjatanasic Nov 29, 2024
RE: Unrecognized function or variable "im"
Alfonso Nieto-Castanon Dec 3, 2024