필터 지우기
필터 지우기

interpolation on an iregular shaped grid

조회 수: 2 (최근 30일)
Dany
Dany 2014년 4월 22일
댓글: Walter Roberson 2014년 4월 22일
hi,
i have a data set off points with (x,y,z) coordinates. those points represents a sort of a path. i would like to create a surface, using some king of interpolation, but i only want to get the surface on the path because what happens aroud it does not concern me. i know that the interpolation functions in matlab works on a equaly spaced grid, a rectengular for instance. how would you recomend to achieve whatr im trying to do? i though about creating a convex hull, and after performing the interpolation keep only the points which lays inside that convex. is there any other/easier way? any advice would be helpfull.
thank you

답변 (2개)

Walter Roberson
Walter Roberson 2014년 4월 22일
Interpolate onto a regular grid, and set the points you do not care about to have the value NaN.
Or, if you use TriScatteredInterp or ScatteredInterpolant, then you can choose to only evaluate the interpolant in certain areas.

Dany
Dany 2014년 4월 22일
thank you, thats exactly what i did.
  댓글 수: 1
Walter Roberson
Walter Roberson 2014년 4월 22일
Please mark my answer as Accepted then.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by