How to run a repeated-measures t-test in Matlab to determine whether you can reject the null hypothesis.

65 views (last 30 days)
sam
sam on 21 May 2015
I have collected data of 7 individuals at rest and then walking. I want to run a repeated measures t-test and then compare it by running another t-test but this time assuming that the data from the two conditions are in fact from two different groups of people. i know i have to use anova1 when dealing with multiple samples but i'm not sure how to go about this.

Answers (2)

Alfonso Nieto-Castanon
Alfonso Nieto-Castanon on 22 May 2015
Edited: Alfonso Nieto-Castanon on 22 May 2015
use ttest2 for a two-sample t-test (the two conditions are from two different groups of subjects), and ttest for a paired t-test (the two conditions are repeated measures within a single group of subjects)

Star Strider
Star Strider on 21 May 2015
I’m not certain what your design is, but the multcompare function might be what you want.

Community Treasure Hunt

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

Start Hunting!

Translated by