3D surface plot
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I have plot a 3d figure. But the height on the z-axis looks like a flat 2d surface.
How can I plot the height and makes the height displays like a 3d surface.
Many thanks!
4 个评论
采纳的回答
Star Strider
2021-1-6
It depends what your data are.
If you are currently using scatter3 or plot3, and your data are reasonably ordered, instead use surf.
If your data are random, create a surface using griddata (or similar functions) to interpolate your point data to a surface that surf can use.
2 个评论
Star Strider
2021-1-6
My pleasure!
If my Answer helped you solve your problem, please Accept it!
Also, although I wrote ‘random’ I meant ‘scattered’ .
更多回答(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!