3D interpolation method or code or help with algorithm

1 次查看(过去 30 天)
Hi again guys, so Im working the the flow model available in matlab and have been following this tutorial http://www.mathworks.com/help/techdoc/visualize/f5-3558.html. If I have a 3d volume how do I interpolate the values of function y at any arbitrary 3d point please do not just say interp3 and meshgrid unless you can explain how to use them with examples in detail, I looked those up but did not understand them very well. I am new to MatLab.
The example above uses the slice function which according to MatLab also uses interpolation of the height to assign a colour value. I was also wondering if there was a way in which I could see how it assigned the colour value so as to figure out the interpolated value of the function V.
Thanks
  6 个评论
Patrick Kalita
Patrick Kalita 2011-9-21
Can you explain why you think the values returned by interp3 are wrong? Yes, there could be some NaNs because of artifacts of interpolating near the edge of the data set, but that does not mean the answer is wrong.
Rafay
Rafay 2011-9-21
oh ok that makes sense thanks, i did some calculations by hand and the results of vi are similar to what i get when i put in xd,yd,and zd values in the flow function, meaning interp worked! NaN threw me off thanks!

请先登录,再进行评论。

回答(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