-
AuthorPosts
-
08/26/2018 at 4:41 PM #5333rubenscuryParticipant
Dear colleagues,
I’m getting a trouble while calculating the VTA, either in the Lead DBS or in the Lead Group – it always appears “error in calculating VTA”
The following message appears while running “Prepare stats” in lead group:
At compilation, “volume” was determined to be a variable and this variable
is uninitialized. “volume” is also a function name and previous versions of
MATLAB would have called the function. However, MATLAB 7 forbids the use of
the same name in the same context as both a function and a variable.Error in lead_group>calculatebutton_Callback (line 1280)
stimparams(1,side).volume=volume;Error in gui_mainfcn (line 95)
feval(varargin{:});Error in lead_group (line 42)
gui_mainfcn(gui_State, varargin{:});Error in
@(hObject,eventdata)lead_group(‘calculatebutton_Callback’,hObject,eventdata,guidata(hObject))Error while evaluating UIControl Callback
…
I’m using Matlab 14bDoes anyone know what to do?
Regards,
Rubens Cury08/26/2018 at 6:42 PM #5336rubenscuryParticipantActually now it works. I was setting the SimBio model for VTA, but trying the other ones the “prepare stats” runs perfectly. The problem now is in the next step: correlate variable (updrs improvement) with VTA intersection
The following error appears:
VI_BH
Undefined function ‘corr’ for input arguments of type ‘double’.Error in ea_permcorr (line 17)
r(a) =corr(x(:,a),y,’type’,type,’rows’,’pairwise’);Error in ea_corrplot_gen (line 39)
[R,p]=ea_permcorr(X(:,1),X(:,2),’spearman’);Error in lead_group>corrbutton_vta_Callback (line 571)
[R_upd,p_upd,R,p,f]=ea_corrplot_gen([stats.corrcl,stats.vicorr.nboth],description,stats.vc_labels,[],[],’permutation’);Error in gui_mainfcn (line 95)
feval(varargin{:});Error in lead_group (line 42)
gui_mainfcn(gui_State, varargin{:});Error in
@(hObject,eventdata)lead_group(‘corrbutton_vta_Callback’,hObject,eventdata,guidata(hObject))Error while evaluating UIControl Callback
Does anybody can help me?
Many Thanks
Rubens08/26/2018 at 8:04 PM #5338andreashornKeymasterHi Rubens,
corr is a built-in Matlab function but part of the Stats & ML toolbox (https://www.mathworks.com/help/stats/corr.html) needed for some functions of Lead-DBS.
You can probably use an alternative function for correlation and replace the call in
ea_permcorr (line 17) if you have no access to the toolbox.Best, Andy
08/26/2018 at 10:11 PM #5340rubenscuryParticipantThanks Andy,
I was using Matlab 2014b. Now I installed the 2018a version and the “corr” function is working normally.Many thanks again
Best, Rubens09/11/2018 at 8:04 PM #5422andreashornKeymasterGreat!
-
AuthorPosts
- The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.