error using meshgrid: out of memory

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?

 Respuesta aceptada

Star Strider
Star Strider el 3 de Ag. de 2016

0 votos

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

2 comentarios

Catherine F
Catherine F el 3 de Ag. de 2016
That's what I ended up doing. Thank you.
Star Strider
Star Strider el 4 de Ag. de 2016
My pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Ag. de 2016

Comentada:

el 4 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by