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

1 visualización (últimos 30 días)
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!

Respuestas (1)

KSSV
KSSV el 17 de Mzo. de 2017
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.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by