Plot histograms from a loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
msij
am 2 Mär. 2016
Kommentiert: Giorgio Gerini Romagnoli
am 14 Mai 2020
Hi,
I have a loop that reads in all images from a folder and then processes and analyses them. From this, I get n variables with certain values. I want to be able plot each of these variables as a histogram on the same plot (and have a different colour for each histogram).
So if I have 3 images, I want 3 histograms. If I have 5, then I want 5.
How would I go about doing this?
I tried a few loops but kept getting stuck.
Thanks for your help.
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 2 Mär. 2016
There's an example on the documentation page for HISTOGRAM that shows how to plot multiple histograms on the same axes.
2 Kommentare
Giorgio Gerini Romagnoli
am 14 Mai 2020
Hello, I am trying to do the same here, how did you solve this issue?
Weitere 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!