Plotting two lines in 3d

2 views (last 30 days)
Vincent Loft
Vincent Loft on 5 Mar 2021
Answered: Cris LaPierre on 5 Mar 2021
Hello!
I need help visualizing a problem in Matlab to better understand how to tackle it. What I want to do is simply plot two lines in 3d.
Line 1: (x,y,z)=t(1,1,-1)
Line 2: (x,y,z)=t(2,1,0)
How do I go about this?

Answers (1)

Cris LaPierre
Cris LaPierre on 5 Mar 2021
Look into plot3.

Community Treasure Hunt

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

Start Hunting!