Saturday, August 4, 2012

histc, histogram count

http://www.mathworks.com/help/techdoc/ref/histc.html

n = histc(x,edges) counts the number of values in vector x that fall between the elements in the edges vector (which must contain monotonically nondecreasing values). n is a length(edges) vector containing these counts

Very useful. Plot histogram points instead of bar graph. Need to calculate bin centers and use as x values. Divide the result of histc by the length(x) to get the y values. Plot.

No comments:

Post a Comment