Question: what is ttest2 in matlab?
Answer: h = ttest2( x , y ) returns a test decision for the null hypothesis that the data in vectors x and y comes from independent random samples from normal distributions with equal means and equal but unknown variances, using the two-sample t-test.