How to perform a ttest assuming all values together?

I have recorded the heart rate of 7 individuals walking up and down a stairs. I was wondering how I can carry out a ttest on matlab assuming the heart rate values of ALL together, to get one P value and one t value at the end.

Réponses (1)

Thorsten
Thorsten le 21 Mai 2015

0 votes

You have to use anova1 if you have more than two samples.

2 commentaires

sam
sam le 21 Mai 2015
so is it simply, [p,tbl] = anova1(ECG_stairs), assuming ECG_stairs is the data
Thorsten
Thorsten le 22 Mai 2015
Modifié(e) : Thorsten le 22 Mai 2015
Yes, if each column contains the heart rates for an observer.

Connectez-vous pour commenter.

Catégories

Question posée :

sam
le 21 Mai 2015

Modifié(e) :

le 22 Mai 2015

Community Treasure Hunt

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

Start Hunting!

Translated by