Pass out of memory

1 view (last 30 days)
Ali Shahmoradi
Ali Shahmoradi on 13 Jan 2023
Commented: Ali Shahmoradi on 14 Jan 2023
I want to calculate the solutions of some huge linear system of equations by backslash function and save the norm of solutions in a excel file, and I don't want Matlab stopped when for some cases it has "Out of Memory". Please let me know how can I solve this problem

Answers (1)

Walter Roberson
Walter Roberson on 13 Jan 2023
You could add more ram.
In some cases you might be able to use sparse matrices.
In some cases you might be able to use tall() arrays.
  4 Comments
Walter Roberson
Walter Roberson on 13 Jan 2023
Huh, I did not think it was possible to catch out-of-memory, but testing I see that it is in at least some cases.
Ali Shahmoradi
Ali Shahmoradi on 14 Jan 2023
Thanks, It worked

Sign in to comment.

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!