Filter löschen
Filter löschen

How to save workfile without graphics

1 Ansicht (letzte 30 Tage)
Nguyen Bao
Nguyen Bao am 9 Sep. 2016
Beantwortet: Stephen23 am 10 Sep. 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.

Akzeptierte Antwort

Stephen23
Stephen23 am 10 Sep. 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.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Report Generator 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!

Translated by