Is it contourplot or Isosurface?

How do I plot 3 variable together. Lets say [x,y,z] After plotting them together I want to show the 2D plot of X versus Y at constant Z value.
What command should I use?

回答(2 个)

Matt Tearle
Matt Tearle 2011-6-10

1 个投票

That's a contour plot. But if you have vector data, you may need to go through TriScatteredInterp and meshgrid first.
contour
contourf

1 个评论

contour(x,y,z)
It asks z to be matrix while in my case z is an array

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Contour Plots 的更多信息

提问:

2011-6-10

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by