MATLAB: T test for two samples with different sizes

t-test

Hi,
Which function should i use if I want to test whether two samples with different sizes have different means? I see many ttest functions in matlab

Best Answer

>> ttest2(x,y)
where "x" and "y" are the vectors of your two samples.