How to save a file in folder automatically?

3 vues (au cours des 30 derniers jours)
SEVAL DONERTAS
SEVAL DONERTAS le 30 Mar 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 commentaires
Srivardhan Gadila
Srivardhan Gadila le 2 Avr 2020
@SEVAL DONERTAS can you provide more details on the issue, reproduction steps & exact error message
SEVAL DONERTAS
SEVAL DONERTAS le 2 Avr 2020
Thank you very much, I think I have just solved the problem. That is Ok..
Best Regards...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by