Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

2 way ttest in matlab not showing results

1 vue (au cours des 30 derniers jours)
Adrienne
Adrienne le 18 Mai 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
T = [SJ SJ SJ CM CM SJW; CM SJW CMW SJW CMW CMW]';
% Creates a matrix with the jump type numbers, so that each type is compared to the other
for ii=1:6
[Ttestmjh(ii,1) Ttestmjh(ii,2)] = ttest2((jhmn(:,T(ii,1))),(jhmn(:,T(ii,2))));
% Runs a 2 tailed t-test on the mean jump height for each jump type
[Ttestsdjh(ii,1) Ttestsdjh(ii,2)] = ttest2((sdjh(:,T(ii,1))),(sdjh(:,T(ii,2))));
% Runs a 2 tailed t-test on the sdev jump height for each jump type
end
my ttest runs but produces no actual data in the matrix of Ttestmjh and Ttestsdjh that I had made at the top of my code.
the T value produces the right matrix.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by