Calculating the projection of a point onto a plane

94 visualizzazioni (ultimi 30 giorni)
I need to calculate the orthogonal projection of the point x=(3.5,1.5,−1.5) on the plane 4x−4y+4z=12 and also calculate the reflection of point x in the same plane. I have tried my best but i cannot figure out how to do this using MATLAB, any suggestions?
  1 Commento
John D'Errico
John D'Errico il 20 Set 2021
This is surely homework. You telling us that you have tried your best merely says that you gave up. And since it is homework, you need to be the one doing the thinking.
Surely you can find the normal vector to the plane defined by that equation? What does it tell you?

Accedi per commentare.

Risposte (1)

Yongjian Feng
Yongjian Feng il 20 Set 2021
Modificato: Yongjian Feng il 20 Set 2021
How about this approach:
Orthogonal projection can be thought as the (smallest) distance from this point to the plane.
Assume that the projection is (a,b,c). Then you have distance d as:
d^2 = (a-3.5)^2+(b-1.5)^2+(c+1.5)^2
Because (a,b,c) is a point on the plane, so you also have
4*a-4*b+4c = 12
Then you can combine the above two, and get
d^2 = (a-3.5)^2+(b-1.5)^2+(b-a+4.5)^2
Now you need to minimize d basically. This will give you a, b, and c.

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by