Info

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

Is this the correct way to use hist and ranksum..?? Result looks okie but just want to make sure that i am not doing anything wrong in this.

1 次查看(过去 30 天)
for i = 1:size(an_r,3);
ax1(i)= subaxis(3,6,i,'SpacingVert',0.025,'SpacingHoriz',0.02,'Padding', 0, 'Margin', 0.015,'MT',0.03,'MB',0.03);
tmpwint2_r = squeeze(an_r(:,:,i));
tmpwint(:,i) = tmpwint2_r(:);
idx = tmpwint>0;
N = hist(tmpwint(idx));
N = N/sum(N);
bar(N,1.0)
xlim([0 10])
ylim([0 0.80])
end
format long G
[p,h,stats] = ranksum(tmpwint(:,1),tmpwint(:,2))
[p,h,stats] = ranksum(tmpwint(:,2),tmpwint(:,3))
[p,h,stats] = ranksum(tmpwint(:,3),tmpwint(:,4))
[p,h,stats] = ranksum(tmpwint(:,4),tmpwint(:,5))

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by