How to save an image run time with a title?

조회 수: 2 (최근 30일)
Jhilam Mukherjee
Jhilam Mukherjee 2016년 8월 4일
편집: Walter Roberson 2016년 8월 4일
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.

채택된 답변

Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by