MATLAB: How to find t test of two independent samples in MatLab

independent variablest-test

I have two independent samples of data with different n's (i.e number of data). The file is attached with this. I want to calculate t test of both the samples. Kindly, help me regarding this.

Best Answer

Use the function ttest2 from matlab statistics toolbox.
(<http://www.mathworks.com/help/stats/ttest2.html>)
Related Question