フィルターのクリア

saving large figures in Matlab

26 ビュー (過去 30 日間)
Dawid Strzelczyk
Dawid Strzelczyk 2021 年 3 月 25 日
回答済み: Gaurav Garg 2021 年 3 月 27 日
Hi
is there a way of saving large figures (>2GB) in matlab?
savefig(fig1, strcat(self.imageAddress, '.fig'), 'compact');
results in error: 'Error closing file ... The file may be corrupt.'
I've also tried:
save(strcat(self.imageAddress, '.fig'), 'fig1', '-v7.3')
and the saving works but then
fig = openfig(strcat(self.imageAddress, '.fig'));
gives me an error: 'Invalid Figure file format.'
Best,
Dawid

回答 (1 件)

Gaurav Garg
Gaurav Garg 2021 年 3 月 27 日
Hi Dawid,
Kindly follow the below procedure -
  1. Go to Preferences
  2. Go to General
  3. Click MAT-Files and select "MATLAB Version 7.3 or later".
  4. Then save the figure using savefig().
You can also use the compact option as the last parameter (doc link) since this option results in smaller .fig files.

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by