Problems with ttest2 in matlab version 8.1.0.604 R2013a

1 view (last 30 days)
Morning all, hope you are having a fine day.
In this new version of matlab I have problems conducting a ttest2, which did not occur in an older version of matlab, and I am still using the same data as on the old version. This is the error I get:
Undefined function 'nanvar_base' for input arguments of type 'single'.
Error in nanvar (line 27) Y = nanvar_base(X, dim);
Error in ttest2 (line 169) s2x = nanvar(x,[],dim);
I read about a similar problem and tried the solution they had (finding out in which folder nanvar was, and then moving this folder further down on the pathlist), but this did not work for me. Is there anybody who has a smart suggestion as to how this problem might be corrected?
  2 Comments
hichem moumeni
hichem moumeni on 23 Mar 2015
Search in setpath for(Matlab/toolbox/stats) then click on (Move To Top) ;)
Rajanikant Panda
Rajanikant Panda on 10 Sep 2018
I have the same error. I have "search in setpath for(Matlab/toolbox/stats) and then clicked on (Move To Top) but still facing same error. Please let me know any other solution.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!