Change figure number according to an indice
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Marian-Catalin Pirvulescu
am 18 Mär. 2020
Kommentiert: Marian-Catalin Pirvulescu
am 18 Mär. 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 Kommentare
Akzeptierte Antwort
Rik
am 18 Mär. 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
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!