'ttest' function not working in Matlab
- by Harpreet
When I am using this statement in Matlab in my computer then its giving error as follow:
[h,p,ci]=ttest(randn(100,1),0.1)
Error:
??? Error using ==> nanmean
Too many input arguments.
Error in ==> ttest at 104
xmean = nanmean(x,dim);
However if I use the same statement in Matlab in another computer, then its working fine and giving…