How Can I do contour plot?
2 次查看(过去 30 天)
显示 更早的评论
Suppose I have a square figure.
0 个评论
采纳的回答
Walter Roberson
2014-3-3
MATLAB cannot create continuous figures. You could approximate a continuous figure by creating a surf() or a patch() and configure shading and lighting properties. For your purpose I think a surf() would be most appropriate.
1 个评论
Walter Roberson
2014-3-3
Before you were working with x (monotonically increasing) and with y (a variety of values), and with no Z. That was not enough information to generate a 3D plot.
If you now have x and y coordinates for each of the points, and you have a z (value) for the points as well, then you can use the approaches discussed early on: griddata() or trisurfinterp or scatteredinterpolant. Take the resulting rectangular array of z and surf() it, and set the shading properties of the surface and set up the lighting properties as well.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!