Alexey Moshkin
Alexey Moshkin

Reputation: 35

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

In loop when I generate images I use this string

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

to write the image of this iteration. In this loop I have z iterator.

Upvotes: 0

Views: 431

Answers (1)

Adiel
Adiel

Reputation: 3071

Like that-

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

Upvotes: 1

Related Questions