Dear Andy
Thank you for your incredible reactivity !
Now it went further without requiring another tool box function.
Unfortunately I got the following error message.
Thank you for your advice.
Best
Bechir
Preparing contrasted volume…
Obj number 1, distance: 80.242.
Using object 1.
Obj number 2, distance: 92.7863.
Obj number 3, distance: 81.0634.
Obj number 4, distance: 74.2726.
Using object 4.
Estimated point not yet defined. Using second empirical point.
Midpoint is nan. Stopping.
Calculating cross-correlation series for all x and y values within the cuboid volume.
Maximal value was: 1820302.253.
Preparing contrasted volume…
Obj number 2, distance: 80.5069.
Using object 2.
Estimated point not yet defined. Using second empirical point.
Midpoint is nan. Stopping.
Index exceeds matrix dimensions.
Error in ea_sample_cuboid (line 92)
if trajvector(3)<0
Error in ea_reconstruct_coords (line 3)
[cimat,reldist]=ea_sample_cuboid(trajectory,options);
Error in ea_reconstruct (line 123)
[coords,goodz]=ea_reconstruct_coords(trajectory,trajvector,options);
Error in ea_autocoord (line 129)
[coords,trajvector{side},trajectory{side},tramat]=ea_reconstruct(patientname,options,side);
Error in lead>run_button_Callback (line 337)
ea_autocoord(options);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in lead (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback