How can I plot a 3D plane knowing its center point coordinates and its Normal
Mostra commenti meno recenti
How can I plot a 3D plane knowing its center point coordinates and its Normal ?
Risposta accettata
Più risposte (2)
KSSV
il 22 Giu 2016
You know a point (x1,y1,z1) and normal vector (a,b,c). Then equation of plane should be:
a(x-x1)+b(y-y1)+c(z-z1) = 0 ;
1 Commento
Abeer Heikal
il 22 Giu 2016
Modificato: Abeer Heikal
il 22 Giu 2016
% ax+by+cz+d plane
% 3x+2y+6z+2 plane
y =linspace(-4,4,51);
a=3;b=2;c=6;d=2;
x =linspace(-4,4,51);
[y2,x2]=meshgrid(y ,x );
z2=(1/c).*(d+(a.*x2)+(b.*y2));% ax+by+cz+d plane
surf( x2,y2,z2 );
Categorie
Scopri di più su Surface and Mesh 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!
