All,
I have some data that I would like to create a cumulative histogram of. The bins I would like to use are like
bins=[0.2 15 0.4 15 0.6 15 0.8 15 1 15 1.2 15 1.4 15 1.6 15 1.8 15 2 15];
and a section of my data looks like
data = [0.0720.0850.1180.2000.3250.5270.8231.1931.5531.8221.9521.9071.7071.4681.2871.2001.1381.0380.8980.7780.6670.5990.5630.5110.4340.3560.3000.2660.2470.2160.1990.1830.1650.1310.0810.0580.0510.0370.0220.0190.0320.0340.0340.0340.0330.0200.0170.0160.0170.0170.003];
Given that the bins are non monotonically decreasing/increasing, accumarray and histc throw up errors, does anyone know how I might make this kind of cumulative histogram?
Thanks,
Jim
Best Answer