필터 지우기
필터 지우기

Export_fig conversion help

조회 수: 2 (최근 30일)
gummiyummi
gummiyummi 2020년 7월 24일
댓글: Arthur Roué 2020년 7월 24일
I have 4 matlab scripts, each saving a figure at the end as a png file in a folder.
I have a different script which I want to use to export all 4 png files at once using export_fig.
Problem: how do I "load" the saved figures into the script so that I can convert them using export_fig?
code right now:
export_fig fig1.png
export_fig fig2.png
export_fig fig3.png
export_fig fig4.png
ERROR:
Error using export_fig
No figure found
this export script is in the same folder as the 4 scripts which generated the figures and the saved figures themselves

채택된 답변

Arthur Roué
Arthur Roué 2020년 7월 24일
If you saved your figures in a FIG-File, then
fig_handle = openfig(filename)
will open it.
Here a link to openfig documentation.
  댓글 수: 4
gummiyummi
gummiyummi 2020년 7월 24일
thanks!
Arthur Roué
Arthur Roué 2020년 7월 24일
You're welcome ! Can you accept the answer ?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by