
close all
x=[ 4, 7, 16, 21]
y =[15, 19, 31, 56];
[h,p,k] = kstest2(x,y)
  


F1 = cdfplot(x);
hold on
F2 = cdfplot(y)
set(F1,'LineWidth',2,'Color','r')
set(F2,'LineWidth',2)
legend([F1 F2],'F1(x)','F2(x)','Location','NW')



