How to save a file in folder automatically?

3 次查看(过去 30 天)
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 个评论
Srivardhan Gadila
@SEVAL DONERTAS can you provide more details on the issue, reproduction steps & exact error message
SEVAL DONERTAS
SEVAL DONERTAS 2020-4-2
Thank you very much, I think I have just solved the problem. That is Ok..
Best Regards...

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by