Calculate projection of b on to the plane spanned by a1 and a2

1 view (last 30 days)
Question: Calculate p = x1a1+x2a2, the projection of b onto the plane spanned by a1 and a2.
Given: a1 = [1; 2; -4] ; a2 = [2; 5; 3] ; b = [0; 1; 4]
I am trying to figure out how to solve this question in MATLAB. I am new to MATLAB and learning how to use this software. I tried to brainstorm a lot on this question but I cannot figure out how to solve this. Please, can you help me solve this question? Your help will be appreciated. Thank you.
  3 Comments
John D'Errico
John D'Errico on 21 Apr 2014
I'm still waiting. How do you define a plane? Surely you can find the equation of a plane somewhere.
Roger Stafford
Roger Stafford on 22 Apr 2014
Edited: Roger Stafford on 22 Apr 2014
Like John, I will not solve the problem for you, but here is a hint to get you going. Write an expression for the square of the distance between the point b and the point p as a function of coefficients x1 and x2. What you are seeking is the pair of values for x1 and x2 that minimizes this quantity. Now how could you derive the solution to a problem like that?

Sign in to comment.

Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!