Octave writing many images at once

Started by mahesh, Dec 19, 2023, 06:14 AM

Previous topic - Next topic

mahesh

I am using octave for my homework I need to read, process and write many images at once, I did the reading part but how do I write them as different images with different names. For example

Code:
for i=1:length (file)
    A = imread (file(i).name);
    B = imresize (A,[200 200]);
    imwrite (B," ? "); # Here is where I am stuck
end;
do I have to use an array of strings for the filename option in imwrite and index through those string, if so can you tell me how?