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.

采纳的回答

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 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by