How can I plot a 3D plane knowing its center point coordinates and its Normal
Afficher commentaires plus anciens
How can I plot a 3D plane knowing its center point coordinates and its Normal ?
Réponse acceptée
Plus de réponses (2)
KSSV
le 22 Juin 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 commentaire
Abeer Heikal
le 22 Juin 2016
Modifié(e) : Abeer Heikal
le 22 Juin 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 );
Catégories
En savoir plus sur Polar Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
