Question: Write a function function p = rip(a, n,x) that computes and return p=P*x where P is a 2x2 projection matrix of rank 1 1. with

 Write a function function p = rip(a, n,x) that computes and

Write a function function p = rip(a, n,x) that computes and return p=P*x where P is a 2x2 projection matrix of rank 1 1. with column space consisting of the scalar multiples of a and 2. with null space consisting of the scalar multiples of n. Notes : The function must be named rip a is a nonzero column vector with two components. . n is a nonzero column vector with two components. x is a nonzero column vector with two components. Function Save C Reset MATLAB Documentation 1 function p = rip(a, n,x) 2 % computes the action of P, the 2x2 projection matrix of rank 1 having 3 % a as an eigenvector with eigenvalue 1 and 4 % n as an eigenvector with eigenvalue 0. 6 end Code to call your function @ C Reset 1 a=[1; 0.01] 2 n= [0. 01; 1] 3 x=[1; 0] 4 p=1p(a, n, x) Run Function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!