Question: Finding a bivariate quadratic function (25 points) Letr = be a vector of size 2x1. Write a MATLAB code Yourlastnameyourfirstname HW5p2. m C2 that finds

Finding a bivariate quadratic function (25 points) Letr = be a vector of size 2x1. Write a MATLAB code Yourlastnameyourfirstname HW5p2. m C2 that finds a bivariate quadratic function (0) f(x1, x2) = xPx +qx+r, where P is a 2 x 2 symmetric matrix, q is a 2x1 vector, and r is a scalar, such that the function f satisfies the following conditions f(0,1) = 6, f(1,0) = 6, f(1,1)= 3, f(-1, -1) = 7, f(1,2)=2, f(2, 1) = 6. In other words, your code should output the matrix P, the vector q, and the scalar r. Finding a bivariate quadratic function (25 points) Letr = be a vector of size 2x1. Write a MATLAB code Yourlastnameyourfirstname HW5p2. m C2 that finds a bivariate quadratic function (0) f(x1, x2) = xPx +qx+r, where P is a 2 x 2 symmetric matrix, q is a 2x1 vector, and r is a scalar, such that the function f satisfies the following conditions f(0,1) = 6, f(1,0) = 6, f(1,1)= 3, f(-1, -1) = 7, f(1,2)=2, f(2, 1) = 6. In other words, your code should output the matrix P, the vector q, and the scalar r
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
