I am trying to implement an independent samples ttest comparing two data sets (X and Y). Here is what I used: [h,p,ci,stat] = ttest2(X,Y)
Here is the error I receive: Undefined function or method 'ttest2' for input arguments of type 'double'.
Not sure why it's not locating ttest function. I'm in the main MATLAB directory. I appreciate any help.

 채택된 답변

Image Analyst
Image Analyst 2014년 5월 16일

0 개 추천

It's probably in the Statistics Toolbox. Do you have that? Use "ver" to find out.

댓글 수: 3

Arryn
Arryn 2014년 5월 16일
I don't have that toolbox, but I thought ttest was built into MATLAB with no need for the toolbox. Seems like the stats toolbox is for more advanced procedures like regression and ANOVA.
Image Analyst
Image Analyst 2014년 5월 16일
Nope - it's only in the Stats Toolbox. You might have to try to write your own or find an equivalent function on the File Exchange. Please mark as Accepted if you have no more questions.
Arryn
Arryn 2014년 5월 17일
Thanks, I'll check it out.

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

추가 답변 (0개)

질문:

2014년 5월 16일

댓글:

2014년 5월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by