How to surf a specific contour ?
2 views (last 30 days)
Show older comments
Benutzer Name
on 24 Aug 2018
Commented: Star Strider
on 24 Aug 2018
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)
1 Comment
Accepted Answer
Star Strider
on 24 Aug 2018
For an example, see: how to convert 2D graph to 3D? (link). (Scroll down to the second plot figure.)
2 Comments
Star Strider
on 24 Aug 2018
As always, my pleasure.
Just substitute surf for mesh. The calling syntax for both functions are the same.
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!