Plot plane using a line and a point?
Mostra commenti meno recenti
I have a line
x=0:450;
x1=86;y1=115;z1=11420;
x2=167;y2=70;z2=9240;
y=ones(1,451)*115;
m=(9240-11420)/(167-86); %z2-z1/x2-x1
z = m*(x - x1) + z1;
hold on;line(x,y,z)
how to plot plane using this line and a point (x2,y2,z2)?
1 Commento
z = m*(x - x1) + z1;
in 3d is a plane, not a line.
You need two points in this plane to fix a line.
I guess that one of the points you have in mind is (x1,y1,z1).
What is the second point ?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
