Hi,
Data A from group 1 and B from group 2. Now mean(A) is larger than mean(B). We want to compare the two groups:
In Matlab, ttest2 is used:
To test if A is greater than B:
p=ttest2(A,B,0.05,'right') give p=0.045<0.05, so mean of A is statistically greater than mean of B.
To test if...