How to connect 2 line plots on different z planes to form open-ended shape?

1 回表示 (過去 30 日間)
Brian Tomblin
Brian Tomblin 2017 年 3 月 16 日
回答済み: KSSV 2017 年 3 月 17 日
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!

回答 (1 件)

KSSV
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.

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by