Error when saving a work space

17 ビュー (過去 30 日間)
Marcus Rosales
Marcus Rosales 2020 年 4 月 8 日
コメント済み: Marcus Rosales 2020 年 4 月 15 日
Hello, I am trying to save a workspace after I run a simulation but something seems to be going wrong... I have attached two screen shots of what matlab tells me.
I'm not sure if there is any real limitation on what size variables you can and can not store, but I am guessing there is another issue other than this. If you have any idea, I'd really appreciate some help! I want to compare multiple results from different simulations which will take forever if I can not just save the variables! Thanks in advanced.

採用された回答

Vinai Datta Thatiparthi
Vinai Datta Thatiparthi 2020 年 4 月 12 日
編集済み: Vinai Datta Thatiparthi 2020 年 4 月 12 日
Hello Marcus,
As a workaround, try using the 'v7.3' flag from the command window while using "save". Large files require using this flag when working with "save".
For example, to save the variable 'D',
save('DVal.mat', 'D', '-v7.3')
You can set 'v7.3' as the default in -
Preferences --> MATLAB --> General --> MAT-Files
Secondly, loading a MAT file which is still being saved in the background or which was interrupted halfway through (because of closing MATLAB, or any other reason) results in the error "File might be corrupted".
Hope this helps!
  1 件のコメント
Marcus Rosales
Marcus Rosales 2020 年 4 月 15 日
Thanks for the reply! I'll just put that line of code at the end of my file with the desired variables.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by