How to connect 2 line plots on different z planes to form open-ended shape?
조회 수: 1 (최근 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!