I was trying to run the data that I have in Nifti format, but it kept giving me error
I wanted to try only with one subject, so I made a new folder with "FunRaw" and "T1Raw" folders, I converted from dicom to nifti using SPM 12 for "Sub_001" with only 20 nifti volumes in "FunRaw" and 1 nifti in "T1Raw" for "Sub_001" from the demo data
After running it gave the same error, as it gave when I ran the data I had initially.
Undefined function 'file2mat' for input arguments of type 'struct'.
Error in file_array/subsref>subfun (line 80)
t = file2mat(sobj,varargin{:});
Error in file_array/subsref (line 60)
t = subfun(sobj,args{:});
Error in nifti/subsref>rec (line 219)
t = subsref(t,subs(2:end));
Error in nifti/subsref (line 45)
varargout = rec(opt,subs);
Error in y_Read (line 68)
Data = squeeze(double(Nii.dat(:,:,:,VolumeIndex)));
Error in y_FD_Jenkinson (line 31)
[RefData, RefHead] = y_Read(ReferenceImage,1);
Error in DPARSFA_run (line 892)
Error in DPARSFA>pushbuttonRun_Callback (line 1786)
[Error]=DPARSFA_run(handles.Cfg);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in DPARSFA (line 30)
gui_mainfcn(gui_State, varargin{:});
Error while evaluating UIControl Callback
Can you please help me with this? I am having trouble understanding what this error means, and what can i do to solve it?
YAN Chao-Gan
Fri, 07/14/2017 - 09:47
Permalink
There is a conflict between
There is a conflict between REST's subfolders and SPM8.
Please remove REST's subdirectory in Matlab PATH.
dtelt
Fri, 07/14/2017 - 20:06
Permalink
I tried that : New error
Thank you for the Reply. I appreciate.
I removed "Rest" from the path now the Path only have "Dpabi" and "SPM". But now it gives different error after running as follows:
YAN Chao-Gan
Fri, 07/28/2017 - 06:39
Permalink
Make sure you've put the T1
Make sure you've put the T1 NifTI files under "T1Img".