I've got a problem with perpendicular planes in Matlab.(adsbygoogle = window.adsbygoogle || []).push({});

I start with a plane A and a point P in A. I calculate a plane B perpendicular to A through point P. Equation plane A: -21660x + 1036y + 4669z = 9.22e^{6}

Point P: [129, 46, -1925]

If [a,b,c] is the normal vector of plane B, I choose b = 0.5 and c = 1, then calculate a by assuming the dot product of the normal vectors should be zero. This results in a = 2.4

Substituting point P in the formula of B gives me d = 1593.

To check if these planes are perpendicular and both cross point P, I plotted them in Matlab.i46.tinypic.com/24yu842.jpgCode (Text):X=0:350; Y=0:300;

[X,Y]=meshgrid(X,Y);

Z = (-d-a*X-b*Y)/c;

mesh(X,Y,Z)

Now these planes do not seem perpendicular to me. (They do both cross point P, not shown in the image).

Where do I make a mistake?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Perpendicular planes in Matlab figure

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Perpendicular planes Matlab | Date |
---|---|

MATLAB MATLAB: forces acting on an object | Apr 6, 2018 |

MATLAB How to create distinct circles in Matlab? | May 11, 2017 |

COMSOL - Plane Wave Radiation input not matching Pressure Field | Aug 12, 2014 |

Mathematica graphing problem - twisted plane | Jun 9, 2010 |

Finite Diffrnce simulation code to solve the 2D heat diffusion eqn on a plane 50mx30m | Dec 2, 2009 |

**Physics Forums - The Fusion of Science and Community**