MATLAB Perpendicular planes in Matlab figure

  • Thread starter tonic
  • Start date
I've got a problem with perpendicular planes in Matlab.

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.22e6
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.
X=0:350; Y=0:300;
Z = (-d-a*X-b*Y)/c;

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?

Want to reply to this thread?

"Perpendicular planes in Matlab figure" You must log in or register to reply here.

Related Threads for: Perpendicular planes in Matlab figure

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving