Change figure number according to an indice
조회 수: 9 (최근 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!