Question: Finding a bivariate quadratic function (25 points) be a vector of size 2x1. Write a MATLAB code Yourlastname Yourfirstname HW5p2.m Let = X2 that
Finding a bivariate quadratic function (25 points) be a vector of size 2x1. Write a MATLAB code Yourlastname Yourfirstname HW5p2.m Let = X2 that finds a bivariate quadratic function f(,)=xPx+qx+r where P is a 2x 2 symmetric matrix, q is a 2x 1 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
3.43 Rating (150 Votes )
There are 3 Steps involved in it
MATLAB codes function Fm function Az Fx1x2fx1x2 function that returns matrices A and z for solving t... View full answer
Get step-by-step solutions from verified subject matter experts
