Azzera filtri
Azzera filtri

How to save workfile without graphics

1 visualizzazione (ultimi 30 giorni)
Nguyen Bao
Nguyen Bao il 9 Set 2016
Risposto: Stephen23 il 10 Set 2016
Hi there, if I use "save filname", the workfile will be very lareg (~10GB) and matlab says: Warning: Figure is saved in Sign_10Sep.mat. Saving graphics handle variables can cause the creation of very large files. To save graphics figures, use savefig. Do you know how to save the workfile without graphics? I manually save the figures separately. Thanks.

Risposta accettata

Stephen23
Stephen23 il 10 Set 2016
If you don't want to save everything in your workspace, then don't save everything in your workspace. It really is that simple.
Read the save documentation, and you will find lots of options for selecting which variables to save, e.g. to save the two variable foo and baz, you would do this:
save('filename.mat','foo','baz')
save can also match variable names by regular expressions: read the doc to know more.

Più risposte (0)

Categorie

Scopri di più su MATLAB Report Generator in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by