フィルターのクリア

Saving large custom MATLAB objects and MATLAB save versions

4 ビュー (過去 30 日間)
George Hackney
George Hackney 2023 年 6 月 5 日
コメント済み: George Hackney 2023 年 6 月 6 日
When saving large custom objects in the following scenarios I encounter MATLAB running out memory and fully crashing. No red text is displayed but matlab beeps perioudically and my RAM usage spikes in a sawtooth pattern (gradually increasing till a limit then dropping back to a start point and repeating).
Object A: Large custom object containing various data types including structures and other smaller objects
Object B: The same object as A but created using a newer verison of tooling which leads to less data being stored.
Using different save versions in matlab I am able to gather this information.
% Save Version v7 v7.3
% A 150Mb 3.1Gb
% B Errors 1Gb
I do not understand why I cannot save object B in version 7 since it would seem to be a third of the size of object A. Obviously there are many benefits to saving in v7 which is why I would really like to understand what is causing this issue.
  2 件のコメント
Matt J
Matt J 2023 年 6 月 5 日
No way for us to know, since we don't know what either A or B contains or how they are built.
George Hackney
George Hackney 2023 年 6 月 6 日
I thought that might be the case, what would you need to have an idea of what may be the cause. I cannot provide the code or objects as they are stored on an offline air gapped system.

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by