How to save a file in folder automatically?

조회 수: 2 (최근 30일)
SEVAL DONERTAS
SEVAL DONERTAS 2020년 3월 30일
댓글: SEVAL DONERTAS 2020년 4월 2일
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
Srivardhan Gadila 2020년 4월 2일
@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