memory and large arrays

8 ビュー (過去 30 日間)
John Molyneux
John Molyneux 2016 年 8 月 5 日
編集済み: Thorsten 2016 年 8 月 5 日
I read a large array in from a file :100-150 million by 8 double. After (in array) manipulation I only need the first three rows. These have to be converted (new arrays) and saved. Is there any advantage in deleting the surplus rows?

回答 (1 件)

Thorsten
Thorsten 2016 年 8 月 5 日
編集済み: Thorsten 2016 年 8 月 5 日
If you clear the variables that you do not need Matlab will less likely run out of memory. But if you don't have memory issues, you can keep them, of course. A matrix of 150 million x 8 uses 9.6 GB of memory on my system. You will probably like to get rid of it as soon as possible.

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by