Science:Math Exam Resources/Courses/MATH307/December 2010/Question 04 (b)/Hint 1

From UBC Wiki

Use the matrix A, and the vector b found in Part (a).

First define A and b as matrix and vector in MATLAB, then use to solve the linear system of the least square equation in MATLAB. From the coefficient vector you can then define the polynomial q(x) and plot as usual.