How to resolve out of memory error in matlab? Please read details

조회 수: 2 (최근 30일)
mechE
mechE 2018년 4월 2일
댓글: mechE 2018년 4월 4일
I am working on an ubuntu system with 24 core workstation. I need to load a large matrix of size (15,9000,100,90). Can any one please help me resolve this error. Do we get this error because of space limitation on matlab or the system? Since my system has enough space, I am still getting this error.
  댓글 수: 6
mechE
mechE 2018년 4월 4일
Thank you. I will read this.

댓글을 달려면 로그인하십시오.

답변 (1개)

William Smith
William Smith 2018년 4월 3일
편집: William Smith 2018년 4월 3일
Type
memory
And check the size of the maximum possible array. An array needs contiguous memory, it's possible yours is fragmented.
If that doesn't help, try
feature('memstats')
(see https://undocumentedmatlab.com/blog/undocumented-feature-function ) Also, look into sparse arrays if the data is sparse (i.e. most elements are 0).
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 4월 3일
memory() is only valid on MS Windows, but the user is using Linux. The same is true for feature('memstats') -- not available on Mac or Linux.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by