필터 지우기
필터 지우기

Issue with interp2 function

조회 수: 3 (최근 30일)
Kian
Kian 2015년 4월 22일
편집: Kian 2015년 4월 22일
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

채택된 답변

Image Analyst
Image Analyst 2015년 4월 22일
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
Kian
Kian 2015년 4월 22일
편집: Kian 2015년 4월 22일
That worked. Thanks a lot.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by