2D and 3D cross sections
1 次查看(过去 30 天)
显示 更早的评论
Hello, I have a file of contours and a file of points x,y,z. How can I integrate point data into a cross section of those contours. I have tried interp function without success.
Thnaks, Jul
0 个评论
回答(1 个)
Walter Roberson
2012-5-17
Are these coordinates on a regular array, or are they scattered? The interp family of functions cannot be used for scattered data.
If you do have scattered data then you could use TriScatteredInterp() . You could proceed by interpolating over a grid and then using that grid to interp*() the cross-sections, or you could interpolate over a grid and then use isosurface(), or you could just use the TriScatteredInterp to directly interpolate at the points of interest (which would probably have the best accuracy.)
Question: are any of the points NaN or "missing" and you need to fill them in? There are different techniques for that.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!