X = [34 27 15 23 21 31 26 29 16 31]; [h,stats] = cdfplot(X); stats % Example of pdf and cdf plots for a knwon distribution xc = -3:0.1:3; yc = normpdf(xc,0,1); figure(2) plot(xc,yc,'r'); hold on; plot(xc,normcdf(xc)); hold off X = load('./data/islands.csv'); Y = log(X); hist(Y) cdfplot(X) figure(3) cdfplot(Y) hist(Y, 1.5:10.5) % this will give histogram of Y with breaks at 2,3,4,... X = load('./data/camg.csv'); X = X(:,[5 6 8 9]);