Hello,
Looking to follow up on this old thread.
I am attempting to do a similar procedure as Martijn has described above but to be able to visualize the manually entered localization alongside an actual localization done with lead dbs through lead group.
I’ve followed Ningfei’s advice of setting up the reco variable for the manual entered localization and putting that into a blank subject folder, and that loads OK with the 3D visualization through lead dbs.
However, when I try to visualize the two localizations together in lead group, I get the following error:
_________________________________________________________________________________________
Cell contents reference from a non-cell array object.
Error in ea_showelectrode (line 34)
trajvector=mean(diff(trajectory{side}));
Error in ea_trajectory>update_trajectory (line 242)
[obj.elpatch,obj.ellabel,obj.eltype]=ea_showelectrode(obj.plotFigureH,obj.elstruct,obj.pt,poptions);
Error in ea_trajectory (line 159)
update_trajectory(obj);
Error in ea_elvis (line 164)
el_render(end+1)=ea_trajectory(pobj);
Error in lead_group>vizbutton_Callback (line 545)
resultfig=ea_elvis(options,M.elstruct(ptidx));
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.
_______________________________________________________________________________________
It seems to do specifically with the manually entered localization as the lead group 3d visualization works fine if I just select the subject localized with lead dbs. I suspect it has to do with the fact that there is no further imaging/trajectory information available for the manually entered localization subject for the lead group script to use.
I am running matlab 2017b and lead suite 2.1.8.1
Thank you!
Joey