How to save an image run time with a title?
조회 수: 1 (최근 30일)
이전 댓글 표시
My program gives some output images using some loops and is capable to store output images in run time. However, I want to save the image with a title containing the value of loop variable without displaying it. How it will be possible.
댓글 수: 0
채택된 답변
Walter Roberson
2016년 8월 4일
편집: Walter Roberson
2016년 8월 4일
title( sprintf('The value of the variable as %g', LoopVariableNameGoesHere) )
Or perhaps you mean something like
filename = sprintf('QZT32_P%03d.png', LoopVariableNameGoesHere);
imwrite(YourImageData, filename);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!