I have two vectors. Latitude and longitude, each 90267 in length. I want to create a 2D grid (using meshgrid) and then interpolate temperature values at these points. However, I get an out of memory error. I tried preallocating the matrix ones(90267,90267) but it still uses too much memory. Any way around this?

 채택된 답변

Star Strider
Star Strider 2016년 8월 3일

0 개 추천

I would use a coarser resolution (fewer elements in the original vectors you give to meshgrid). Interpolate your dependent variable data as necessary.

댓글 수: 2

Catherine F
Catherine F 2016년 8월 3일
That's what I ended up doing. Thank you.
Star Strider
Star Strider 2016년 8월 4일
My pleasure.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2016년 8월 3일

댓글:

2016년 8월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by