How to save automatic a plot via command?

조회 수: 5 (최근 30일)
Ivan Mich
Ivan Mich 2019년 10월 25일
편집: KALYAN ACHARJYA 2019년 10월 25일
Hello,
Doew anybody knows How to save automatic a plot in matlab via command after running the code? I hve used command like saveas but the images does not exist..

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 25일
편집: KALYAN ACHARJYA 2019년 10월 25일
%Generate_figure
saveas(gcf,'file_name.png');
The figure will save as png image format in the same working directory
For multiple figures:
for i=1:n
saveas(gcf,sprintf('%d.jpg',j));
end
  댓글 수: 2
Ivan Mich
Ivan Mich 2019년 10월 25일
It works but the problem is that title in axis X does not show and plus the fact the analyse of the image is not good. Do you know something to do in order to fix it?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by