Hi Andy,
Thank you so much for this useful answer.
It seemed relatively easy, but I have tried in different way and I have obtained whenever the same error:
Error using spm_vol>spm_vol_hdr (line 80)
File “/home/***/Documents/DBS_dystonia/practice/pat_5/stimulations/gs_20180110144432/vat_right.nii” does not exist.
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in ea_load_nii (line 28)
nii=spm_vol(fname);
Error in ea_exportvatmapping (line 28)
Vvatr=ea_load_nii([M.patient.list{pt},filesep,’stimulations’,filesep,’gs_’,M.guid,filesep,’vat_right.nii’]);
Error in lead_group>vizbutton_Callback (line 417)
ea_exportvatmapping(M,options,handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in lead_group (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead_group(‘vizbutton_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I don´t really know why it gives this error. I checked in the patient folder and that VTA is normally present.
Thereafter It happens for each patients that the process considers as first.
I´d be grateful if you could give an answer to the problem.
Kind regards, Raf