Error when using resample and smooth surfaces in CAT12
I am trying to use CAT12 to make do surface based morphometry. I am trying to load my cortical thickness maps in the resample and smooth function, but when doing that I get this error when trying to load the files clicking on ‘specify’:
Index exceeds the number of array elements. Index must not exceed 0.
Error in cat_surf_info (line 241)
sinfo(i).side = ff2(hemi_ind(1):hemi_ind(1)+1);
Error in cat_conf_stools>vout_surf_resamp (line 2245)
sinfo = cat_surf_info(job.data_surf{i});
Error in cat_conf_stools>@(job)vout_surf_resamp(job) (line 1275)
surfresamp.vout = @(job) vout_surf_resamp(job);
Error in cfg_exbranch/harvest (line 99)
item.sout = feval(item.vout, val);
Error in cfg_util (line 704)
[tag, val, u3, u4, u5, jobs(cjob).cj] = harvest(subsref(jobs(cjob).cj, …
Error in cfg_ui_util>local_setvaledit (line 661)
cfg_util(‘harvest’, ciid{1:end-1});
Error in cfg_ui_util>@(nval)local_setvaledit(ciid,nval,dflag) (line 275)
udvalshow.setvalcb = @(nval)local_setvaledit(ciid, nval, dflag);
Error in cfg_ui_util (line 454)
feval(udvalshow.setvalcb, val);
Error in cfg_ui>local_valedit_EditValue (line 404)
cfg_ui_util(‘valedit_EditValue’, ciid, itemname, val);
Error in cfg_ui>module_Callback (line 978)
local_valedit_EditValue(hObject);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in cfg_ui (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)cfg_ui(‘module_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
What can I do to fix this error? I am using Matlab 2022a with SPM12 and CAT12.I am trying to use CAT12 to make do surface based morphometry. I am trying to load my cortical thickness maps in the resample and smooth function, but when doing that I get this error when trying to load the files clicking on ‘specify’:
Index exceeds the number of array elements. Index must not exceed 0.
Error in cat_surf_info (line 241)
sinfo(i).side = ff2(hemi_ind(1):hemi_ind(1)+1);
Error in cat_conf_stools>vout_surf_resamp (line 2245)
sinfo = cat_surf_info(job.data_surf{i});
Error in cat_conf_stools>@(job)vout_surf_resamp(job) (line 1275)
surfresamp.vout = @(job) vout_surf_resamp(job);
Error in cfg_exbranch/harvest (line 99)
item.sout = feval(item.vout, val);
Error in cfg_util (line 704)
[tag, val, u3, u4, u5, jobs(cjob).cj] = harvest(subsref(jobs(cjob).cj, …
Error in cfg_ui_util>local_setvaledit (line 661)
cfg_util(‘harvest’, ciid{1:end-1});
Error in cfg_ui_util>@(nval)local_setvaledit(ciid,nval,dflag) (line 275)
udvalshow.setvalcb = @(nval)local_setvaledit(ciid, nval, dflag);
Error in cfg_ui_util (line 454)
feval(udvalshow.setvalcb, val);
Error in cfg_ui>local_valedit_EditValue (line 404)
cfg_ui_util(‘valedit_EditValue’, ciid, itemname, val);
Error in cfg_ui>module_Callback (line 978)
local_valedit_EditValue(hObject);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in cfg_ui (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)cfg_ui(‘module_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
What can I do to fix this error? I am using Matlab 2022a with SPM12 and CAT12. I am trying to use CAT12 to make do surface based morphometry. I am trying to load my cortical thickness maps in the resample and smooth function, but when doing that I get this error when trying to load the files clicking on ‘specify’:
Index exceeds the number of array elements. Index must not exceed 0.
Error in cat_surf_info (line 241)
sinfo(i).side = ff2(hemi_ind(1):hemi_ind(1)+1);
Error in cat_conf_stools>vout_surf_resamp (line 2245)
sinfo = cat_surf_info(job.data_surf{i});
Error in cat_conf_stools>@(job)vout_surf_resamp(job) (line 1275)
surfresamp.vout = @(job) vout_surf_resamp(job);
Error in cfg_exbranch/harvest (line 99)
item.sout = feval(item.vout, val);
Error in cfg_util (line 704)
[tag, val, u3, u4, u5, jobs(cjob).cj] = harvest(subsref(jobs(cjob).cj, …
Error in cfg_ui_util>local_setvaledit (line 661)
cfg_util(‘harvest’, ciid{1:end-1});
Error in cfg_ui_util>@(nval)local_setvaledit(ciid,nval,dflag) (line 275)
udvalshow.setvalcb = @(nval)local_setvaledit(ciid, nval, dflag);
Error in cfg_ui_util (line 454)
feval(udvalshow.setvalcb, val);
Error in cfg_ui>local_valedit_EditValue (line 404)
cfg_ui_util(‘valedit_EditValue’, ciid, itemname, val);
Error in cfg_ui>module_Callback (line 978)
local_valedit_EditValue(hObject);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in cfg_ui (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)cfg_ui(‘module_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
What can I do to fix this error? I am using Matlab 2022a with SPM12 and CAT12. cat12, spm MATLAB Answers — New Questions