How do I keep all plots open?

62 visualizaciones (últimos 30 días)
Hao Sun
Hao Sun el 23 de Mzo. de 2020
Editada: Samayochita el 5 de Feb. de 2025 a las 8:50
How do I keep plots open (even when function or code finishes) and have new plots just create a new plot (not on same axis or anything)
Also how to save multiple plots? e.g. have a function that everytime is run automatically saves the plot to some folder or something
  3 comentarios
Sindar
Sindar el 24 de Mzo. de 2020
Also, "print" saves figures
"print(filename,formattype) saves the current figure to a file using the specified file format, such as print('BarPlot','-dpng'). If the file name does not include an extension, then print appends the appropriate one."
Samayochita
Samayochita el 5 de Feb. de 2025 a las 8:49
Editada: Samayochita el 5 de Feb. de 2025 a las 8:50
Using saveas :
figure;
plot(x, y);
saveas(gcf, 'Plot1.png'); % Saves the current figure

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by