필터 지우기
필터 지우기

Dimensions error on paired t-test?

조회 수: 2 (최근 30일)
shir shalom
shir shalom 2016년 12월 20일
댓글: Star Strider 2016년 12월 25일
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
shir shalom
shir shalom 2016년 12월 21일
It has the same result:
C:\Program Files\MATLAB\R2013b\toolbox\stats\stats\ttest.m
Adam
Adam 2016년 12월 21일
The one that is active (not overshadowed) will always be the result of the simpler call though.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2016년 12월 21일
Since you’re obviously not overshadowing, see if you have a path problem. The way to solve that is to run these two lines:
restoredefaultpath
rehash toolboxcache
That should solve path problems. If this doesn’t work, contact MathWorks Technical Support.
  댓글 수: 6
shir shalom
shir shalom 2016년 12월 25일
I contacted them. Thank you so much.
Star Strider
Star Strider 2016년 12월 25일
My pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Google에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by