How to show all cell contents which is images 1 by 1 using imshow
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Bachtiar Muhammad Lubis
il 20 Gen 2019
Commentato: Bachtiar Muhammad Lubis
il 26 Gen 2019
i wrote this code a while ago
idxSubs = 0;
for col = 1 : length(num_char)
subplot(4, 7 , 1 + idxSubs);
imshow(num_char{1, col});
caption = sprintf('img ke- %d', col);
title(caption,'FontSize', 11);
end
but unfortunately the result didn't give like what i expected.

as you guys see, it showed me only an image which's the last content of cell.
i want to show all cell contents in a figure(1).
thanks before.
0 Commenti
Risposta accettata
Image Analyst
il 20 Gen 2019
Try this:
displayColumns = ceil(sqrt(length(num_char)));
for col = 1 : length(num_char)
subplot(displayColumns, displayColumns, col);
imshow(num_char{1, col});
caption = sprintf('img ke- %d', col);
title(caption,'FontSize', 11);
end
3 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!