I was trying to save my variables which greater than 2gb, as per the previous error using -v7.3, It was taking considerably long time and in between my laptop blanked out, so I had to restart it again, my lap is 8gb ram,i5 8thgen, is it a ram problem(do i need to expand) or is there any better version of saving the variable larger than 2gb?

5 件のコメント

KSSV
KSSV 2019 年 7 月 10 日
Is it a single variable? single matrix?
Raj
Raj 2019 年 7 月 10 日
編集済み: Raj 2019 年 7 月 10 日
Guillaume
Guillaume 2019 年 7 月 10 日
Since you must have had the variables in memory in order to save them to a mat file, you clearly have enough RAM.
How much larger than 2GB are you variables?
What does my laptop blanked out mean? If it went to sleep, then a) do the saving when you're plugged in, and b) change your power options so it doesn't go to sleep.
Stephen23
Stephen23 2019 年 7 月 10 日
Keerthi Sasikumar's "Answer" moved here:
There were 2 variables which I had to save, and since it showed error: 'unable to save due to size greater than 2gb,use matfile v7.3', i used the command save('final_lan.mat', 'newdata','newdata_2', '-v7.3') The variable is daily sst anomaly lanczos filtered data which hasn size 1440*720*365. Now it resolved when I tried to save each variable seperatly in the same way.
Keerthi Sasikumar
Keerthi Sasikumar 2019 年 7 月 10 日
Thank you Guillaume , I mean, while the code was running. my laptop just crashed and went black screen, I had to shut down entirely and restart the system again.

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

回答 (1 件)

Jalaj Gambhir
Jalaj Gambhir 2019 年 7 月 19 日

0 投票

Hi,
Try saving the variable in an HDF5 dataset using ‘h5write.

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

タグ

質問済み:

2019 年 7 月 10 日

回答済み:

2019 年 7 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by