griddata line 30 error

조회 수: 1 (최근 30일)
Srtm
Srtm 2022년 6월 28일
편집: Srtm 2023년 1월 19일
Hi everyone
I keep getting the following error, what should I do?
out of memory. type help memory for your options
  댓글 수: 1
dpb
dpb 2022년 6월 28일
You tried to create an output that overflows available memory.
We can't tell how big that is, but it's too big for your available PC memory given the resolution you've requested in defining an, bn with a difference of 0.001.
griddata doesn't know about tall arrays so everything must fit into available memory and you're clearly using a lot here.
You can cut the resolution down by (say) 10X a see if you then have sufficient memory.
Alternatively, if you must keep the resolution, you'll have to limit the portion of the data you access and process the whole thing in pieces.

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

답변 (1개)

Sourav Sukumaran
Sourav Sukumaran 2022년 7월 3일
Hi
Just like the comment https://in.mathworks.com/matlabcentral/answers/500080-out-of-memory-matlab-runtime-2015b#answer_413132 says we should allocate fewer length array in general.
Also try cutting down the resolution by 10 or so to check into this problem. If you necessitate keeping the resolution try to limit the range of data you will be accessing as the comment above mentions.
Thanks.

카테고리

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

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by