Obtain contours with a 3D geometry and a contour function in a 3D space
2 次查看(过去 30 天)
显示 更早的评论
Hi! I am wondering if it is possible to use a function similar to contour with more dimensions.
I usually use contour with two matrixes of coordinates X and Y (generates with meshgrid, ''grid_X'' and ''grid_Y'') and an interpolated function (generate with griddata)
[C,h] = contour(grid_X,grid_Y,int_function);
When I am in a 2D geometry it works. However, I need one more dimension now i.e. I have to use X,Y,Z and an interpolated function as contour function.
Is there a function similar to ''contour'' (or a method) to use in this case?
As an example of what I want I show the following image in which I have the coordinates of the sphere grid_X, grid_Y and grid_Z (all of them with dimensions 101 x 101 x 101) and the surface to generate the contours int_function with dimensions 101 x 101 x 101 as well.
3 个评论
darova
2021-2-14
All your matrices are 3d, i suppose you have data to display volume? Can you explain more? WHat are you trying to achieve?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!