Display selected bars above a given limit on the histogram
1 view (last 30 days)
I have a histogram with 100 bars, the highest bars have about 100 numbers of proporties, but i have a small bars at the end with about 5 numbers of appearances too. How can i display selected bars above for example 10 number of appearances?
I would to make 100 bars for my signal, but select bars which has above X number of appearances.
ILoveMATLAB on 25 May 2022
First use histcounts to get the edges and bins
[N,edges] = histcounts(X)
Remove the edges and bins you dont care about
tfKeep = N>10
N = N(tfKeep)
edges = edges(tfKeep)
I have not validated this code, but it should be correct.