hi i want to save images

1 view (last 30 days)
Ali Ghazzawi
Ali Ghazzawi on 10 Aug 2020
Answered: KSSV on 10 Aug 2020
can you help me i want to save 44 images of 44 different plots with one singal run is it possible?
  2 Comments
KSSV
KSSV on 10 Aug 2020
You have to run a loop.
Ali Ghazzawi
Ali Ghazzawi on 10 Aug 2020
i know but is there a command to save images? because the commands that i know just display them and i have to save them manualy which takes a lot of time

Sign in to comment.

Accepted Answer

KSSV
KSSV on 10 Aug 2020
for i = 1:44
h=figure ;
plot(rand(1,10)) ;
saveas(h,sprintf('FIG%d.png',i)); % will create FIG1, FIG2,...
end

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!