Thank you Andy. I solved this problem with your tip, but now, I get some different errors. When I try tolocalize electrodes, I get:
Index exceeds matrix dimensions.
Error in ea_manualreconstruction>updatescene (line 429)
memp_eldist=mean([emp_eldist{1},emp_eldist{2}]);
Error in ea_manualreconstruction (line 43)
updatescene([],[],mcfig);
Error in ea_autocoord (line 203)
ea_manualreconstruction(mcfig,patientname,options);
Error in ea_run (line 95)
ea_autocoord(options);
Error in lead_dbs>run_button_Callback (line 240)
ea_run(‘run’,options);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in lead_dbs (line 43)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead_dbs(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
>>
Thank you, Ada