Issue with interp2 function

I am trying to do a bilinear interpolation using interp2. I got X (matrix of latitudes in decimal degrees of my reference points), Y (that of longitudes), and Z (matrix of reference field). Also have XI and YI as vectors of latitudes and longitudes of the points to which I am interpolating to. I just don't know how to get XI and YI to work as they are in vector format, and I think this is what is causing me the problem.
Any thoughts would be greatly appreciated.
Thank you,
Kian

 Respuesta aceptada

Image Analyst
Image Analyst el 22 de Abr. de 2015

0 votos

You'll have to use scatteredInterpolant(). Sorry, I don't have any demos for that so you'll have to do it on your own with help from the documentation.

1 comentario

Kian
Kian el 22 de Abr. de 2015
Editada: Kian el 22 de Abr. de 2015
That worked. Thanks a lot.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Preguntada:

el 22 de Abr. de 2015

Editada:

el 22 de Abr. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by