Change figure number according to an indice
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Rik
2020-3-18
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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!