Change figure number according to an indice
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Marian-Catalin Pirvulescu
le 18 Mar 2020
Commenté : Marian-Catalin Pirvulescu
le 18 Mar 2020
Hi everyone,
If I have a code like
imread('image.pgm')
for i=1:10
%here is some code to execute
figure('the image number', p,'of the series')
imagesc()%plot the image changed by the code
0 commentaires
Réponse acceptée
Rik
le 18 Mar 2020
Two options of what you mean:
for k=1:10
figure('Name',sprintf('the image number %d of the series', k))
end
%or:
for k=1:10
figure(k)
end
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!