How can I turn plotted line into a 3D surface?
10 次查看(过去 30 天)
显示 更早的评论
I have a complex 3D line (spiral-esque) and would like to turn it into a surface. I was wondering if there is any function that might be able to do this or if there is an easier way than the path I'm currently taking (lofting a shape along the line). I'm very bad at coding and so this route isn't working too well. I really wish there was a feature that just converted a line thickness (LineWidth) into a solid or a surface. I'm open to any suggestions.
回答(1 个)
Ayush Gupta
2020-9-1
The surf function can be used to our advantage here. Instead of plot command we can use the following command in the script to get the surface.
surf(X,Y,Z);
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!