How can I plot a 3D plane knowing its center point coordinates and its Normal
Show older comments
How can I plot a 3D plane knowing its center point coordinates and its Normal ?
Accepted Answer
More Answers (2)
KSSV
on 22 Jun 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 Comment
Abeer Heikal
on 22 Jun 2016
Edited: Abeer Heikal
on 22 Jun 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 );
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!