Ttest function with random numbers
1 次查看(过去 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 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!