hi i want to save images

1 次查看(过去 30 天)
Ali Ghazzawi
Ali Ghazzawi 2020-8-10
回答: KSSV 2020-8-10
can you help me i want to save 44 images of 44 different plots with one singal run is it possible?
  2 个评论
KSSV
KSSV 2020-8-10
You have to run a loop.
Ali Ghazzawi
Ali Ghazzawi 2020-8-10
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

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by