How to save a file in folder automatically?

3 visualizaciones (últimos 30 días)
SEVAL DONERTAS
SEVAL DONERTAS el 30 de Mzo. de 2020
Comentada: SEVAL DONERTAS el 2 de Abr. de 2020
Hi
I want to save ".fig" and ".png" files in a folder automatically?
I have used the below codes but it did not run. Could you please help ?
FigH=figure('Position', get(0, 'Screensize'));
FileName='C:\Users\Lenovo\Desktop\FOLDER1';
saveas (FigH, fullfile(FileName,'FILE1.fig'));
saveas (FigH, fullfile(FileName,'FILE1.png'));
  3 comentarios
Srivardhan Gadila
Srivardhan Gadila el 2 de Abr. de 2020
@SEVAL DONERTAS can you provide more details on the issue, reproduction steps & exact error message
SEVAL DONERTAS
SEVAL DONERTAS el 2 de Abr. de 2020
Thank you very much, I think I have just solved the problem. That is Ok..
Best Regards...

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by