How to save automatic a plot via command?

14 visualizaciones (últimos 30 días)
Ivan Mich
Ivan Mich el 25 de Oct. de 2019
Editada: KALYAN ACHARJYA el 25 de Oct. de 2019
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..

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 25 de Oct. de 2019
Editada: KALYAN ACHARJYA el 25 de Oct. de 2019
%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 comentarios
Ivan Mich
Ivan Mich el 25 de Oct. de 2019
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?

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by