Subplot Histogram Plotting Mistake
Mostra commenti meno recenti
Hello,
I am using that code at my project.
But I can't show histogram for my image. I added my result below too. Can you help me please?
Thank you
figure('Name','Org. Img + Histogram','NumberTitle','off');
subplot(2,1,1), imshow(org), title('Org. Img.');
subplot(2,1,2), imhist(org),title('Histogram of original image'), axis([0 270 0 8500]);

4 Commenti
John Jimmy
il 20 Mag 2020
Walter Roberson
il 20 Mag 2020
It worked for me in my test:
org = imresize(imread('cameraman.tif'), [100 100]);
subplot(2,1,1), imshow(org), title('Org. Img.');
subplot(2,1,2), imhist(org),title('Histogram of original image'), axis([0 270 0 8500]);
(The histogram for this test is not empty; the counts are just not nearly as much as the 8500 you set as the axis limits)
John Jimmy
il 20 Mag 2020
John Jimmy
il 20 Mag 2020
Modificato: John Jimmy
il 20 Mag 2020
Risposte (0)
Categorie
Scopri di più su Subplots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!