Density plot of a 2D matrix
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi :)
I have a 2D matrix and I want to plot the number of accurence for each element at each row as the density plot (please see the attached plot).
In other words, each background color shows the probability (count) of each sample.
Thanks.
2 Kommentare
Image Analyst
am 10 Jan. 2021
I don't understand. I imagine the image is your 2-D matrix and you've applied a colormap to it. But what is the black line plot? The "number of occurrence" to most people means "histogram". But if you had a histogram for each row, you would have multiple values, not just the one value you're plotting at each row. Even if you took the histogram of the entire array, it would be misleading and deceptive to plot the histogram going vertically down the rows. So attach your data, and explain the black curve.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!