How to surf a specific contour ?
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I wonder if I can surf not only a rectangular area with "surf" (like using "meshgrid",...) but also an specific area like my .mat file. I tried to write a script to do so, but I thought there is maybe a simple way, maybe a function, to surf things like that. At the end I want also extrude it and use it as a 3D object. but first it would be enough if I could surf my area in the image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194347/image.png)
采纳的回答
Star Strider
2018-8-24
For an example, see: how to convert 2D graph to 3D? (link). (Scroll down to the second plot figure.)
2 个评论
Star Strider
2018-8-24
As always, my pleasure.
Just substitute surf for mesh. The calling syntax for both functions are the same.
更多回答(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!