Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Brian Tomblin
Brian Tomblin am 16 Mär. 2017
Beantwortet: KSSV am 17 Mär. 2017
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!

Antworten (1)

KSSV
KSSV am 17 Mär. 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.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by