How to connect 2 line plots on different z planes to form open-ended shape?
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have numerous individual line plots on a 3D plot in Matlab. These plots make 2D vertebrae outlines (looks like butterflies). I would like to connect two of the line plots along the z axis to form an open-ended shape (so the two line plots would be the top and bottom of the structure and the sides would be solid).
Is this possible, and, if so, how?
For example, there are 2 line plots in a 3D space. One is a 1-by-1 square on Z = 1 and the other is a 2-by-2 square on Z = 2. How can I make the 2 individual square plots look like a 3D trapezoid with square one and square two as Base one and Base two, respectively?
Thank you!
0 个评论
回答(1 个)
KSSV
2017-3-17
This should be helpful for you. https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube/content/plotcube.m. In this code the author demonstrated drawing a cube. You can follow the same to draw a 3D trapezoid by providing your coordinates.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!