- Go to Preferences
- Go to General
- Click MAT-Files and select "MATLAB Version 7.3 or later".
- Then save the figure using savefig().
saving large figures in Matlab
34 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Gaurav Garg
am 27 Mär. 2021
Hi Dawid,
Kindly follow the below procedure -
You can also use the compact option as the last parameter (doc link) since this option results in smaller .fig files.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!