imwrite in 循环如何在 Octave/Matlab 中写入许多不同的图像

How imwrite in loop write many different images in Octave/Matlab

在我生成图像时循环使用这个字符串

imwrite(IWindow, gray(256), 'plane', 'tif');

写下这次迭代的形象。 在这个循环中,我有 z 迭代器。

像那样-

 for z=1:num
      fname=sprintf ('plane%d.tif', z);
      imwrite (IWindow, gray (256), fname);
 end