'ttest' function not working in Matlab
Posted
by
Harpreet
on Super User
See other posts from Super User
or by Harpreet
Published on 2010-09-28T21:26:54Z
Indexed on
2011/02/01
7:27 UTC
Read the original article
Hit count: 533
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 results. Do you know what could be the problem? I am posting this question here suspecting it to be some software problem with Matlab. Correct me if I am wrong.
© Super User or respective owner