Ttest function with random numbers
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi all,
I have the following problem with the ttest function:
[h, p, ci, stats] = ttest(randn(10,1), randn(10,1), 0.05)
Undefined function or variable 't'.
Error in nanmean (line 7) N = sum(~isnan(t), dim);
Error in ttest (line 131) xmean = nanmean(x,dim);
Anyone knows how to deal with this? Doesn't seem to be related to structure (tried squeeze).
Best regards,
Christian
댓글 수: 0
채택된 답변
the cyclist
2014년 11월 16일
My best guess is that you have inadvertently defined your own ttest function. What do you get if you type
which -all ttest
?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!