3D interpolation method or code or help with algorithm
이전 댓글 표시
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
Sean de Wolski
2011년 9월 20일
Well what do you have written that isn't working? Have you looked at triscatteredinterp?
Rafay
2011년 9월 20일
Patrick Kalita
2011년 9월 21일
The output of interp3 will be the same size and shape as the xd, yd, and zd inputs. If xd, yd, and zd were 2D arrays, then vi will be a 2D array. If you want vi to be a different size (perhaps a 3D array or a scalar), then you need to change your xd, yd, and zd.
Rafay
2011년 9월 21일
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
2011년 9월 21일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!