% M-script to verify how ttest function works
% Authors: M.Borgo ? A.Soranzo ? M. Grassi
yellow = [300 287 301 400 211 399 412 312 390 412];
red = [240 259 302 311 210 402 390 298 347 380];
[h p ci stats]=ttest(yellow,red, 0.01,'right')