How to save a .fig into .eps without opening it ?

10 ビュー (過去 30 日間)
Mary
Mary 2020 年 9 月 28 日
コメント済み: Adam Danz 2020 年 10 月 1 日
Hi,
I have a .fig file of 2GB. Matlab cannot load it and gives the error "out of memory". Is there any way to open .fig on an external disk and use its memory to load the figure ? Otherwise, is there any way to convert it into an eps file without openning it ?
Regards,
Mary
  2 件のコメント
Adam Danz
Adam Danz 2020 年 9 月 28 日
Mary
Mary 2020 年 9 月 28 日
the same problem persists when I use:
load('Contour.fig','-mat')
Error using load
Out of memory. Type "help memory" for your options.

サインインしてコメントする。

回答 (1 件)

Manas Meena
Manas Meena 2020 年 10 月 1 日
The FIG extension can be changed but there is a simpler workaround for your issue. You don't have to display the figure in order to get the data.
FIG files are stored in the standard MATLAB format, that you can read using the built-in load() function. The figure handles and data are stored in a structure that you can easily process.
load(filename,-mat)
If you still get an out of memory error message, please refer to the link below:
  1 件のコメント
Adam Danz
Adam Danz 2020 年 10 月 1 日
The figure still opens with this method (tested in r2020b).

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by