interpolation on an iregular shaped grid
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Geometry 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!