Info

此问题已关闭。 请重新打开它进行编辑或回答。

2 way ttest in matlab not showing results

1 次查看(过去 30 天)
Adrienne
Adrienne 2014-5-18
关闭: MATLAB Answer Bot 2021-8-20
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.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by