Dimensions error on paired t-test?
古いコメントを表示
Hi all, I try to perform a paired t-test like that:
a=[1;2;3]
b=[10;20;30]
h = ttest(a,b)
and I get the following error message:
"Dimension argument must be a positive integer scalar within indexing range"
Does anyone know what's wrong?
Thanks, shir
6 件のコメント
Adam
2016 年 12 月 20 日
What does
which ttest
show?
shir shalom
2016 年 12 月 20 日
Adam
2016 年 12 月 20 日
I can't see how you would get that error in that case. I would suggest using the
dbstop if error
option to see exactly where it is that the error is being thrown from as you may have some overloaded version of a function that gets called by ttest.
Star Strider
2016 年 12 月 20 日
The which call needs to be:
which ttest -all
to check for overshadowing.
shir shalom
2016 年 12 月 21 日
Adam
2016 年 12 月 21 日
The one that is active (not overshadowed) will always be the result of the simpler call though.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!