contour3-With 3 dimensions input arguments
8 次查看(过去 30 天)
显示 更早的评论
Hello. I have the following: Α:24X24X24, B:24X24X24 and C:24X24X24
I want to make the contour3 plot
contour3(A,B,C)
but it shows me the following error: "Input arguments must have at most 2 dimensions". Is there a way to make a contour3 plot with three dimensions?
0 个评论
回答(2 个)
John D'Errico
2022-1-10
In order for a 3-d contour plot to make sense, you need to have some function, W(X,Y,Z), thuis a level surface, where you look for constant values of W as 3-d surfaces.
If all you have are A, B, and C, then a 3-d contour plot makes little sense.
If you actually have a 4th variable, you can use isosurface.
help isosurface
I'm not sure what you intend to see from contour3 given what you have.
0 个评论
Bjorn Gustavsson
2022-1-10
Maybe you get what you need with the slice function, or perhaps isosurface. From my naive understanding we can draw iso-contours on a 2-D surface - and the extension of such iso-contours in 3-D becomes iso-surfaces. If you want one set of contours on each level in the z-direction you might get use of the attached function.
HTH
0 个评论
另请参阅
类别
在 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!