I am making a histogram with bins of specified ranges, but I want it to be cumulative such that each bin shows the values that are in or greater than that range. I found the function cumsum which cumulatively adds the values so each column shows how many values are in or less than the specified range, but I want to do it the other way. For instance, if my values were 1:10 inclusive, cumsum gives me [1 3 6 10 15 21 28 36 45 55]. What I want is [55 54 52 49 45 40 34 27 19 10]. What function would I use for this?
MATLAB: How to make exceedance curve using histc
cumulative histogramhistc
Related Question
- What is the logic behind contradicting bins in the function histc
- How to have a vector that counts how many repetitive numbers there is in another vector
- Ii want to know about, How to find a histogram of an uint8 image with 16 amplitude bins
- How to discretize
- How to plot a normalised cumulative histogram
Best Answer