Question: Problem Of Take m = 50, 12 = 12. Using MATLAB'S Linspace , define & to be the M - vector corresponding to linearly spaced

Problem Of Take m = 50, 12 = 12. Using MATLAB'S Linspace , define & to be the M - vector corresponding to linearly spaced grid points from 0 to 1 . Using MATLAB'S vander and Fliplr , define A to be the m x 1 matrix associated with least squares fitting on this grid by a polynomial of order 12 - 1 . Take & to be the function cost! ! ] evaluated on the grid . Now , calculate and print ( to 16 digit precision ; the least squares coefficient vector * by the following three methods . ( a) Solving the normal equation explicitly computing [A' AY- !. ( b ) Using the MATLAB implementation Cas. m of the classical Gram - Schmidt algorithm Cas , which can be downloaded From CANVAS . ( C ) Using the MATLAB implementation MGS . In of the modified Gram - Schmidt algorithm MGS , which can be downloaded From CANVAS . [d] OR factorization using MATLAB'S gr , whin which is based on the Householder triangularization . (C) * = AID in MATLAB , which is also based on OR factorization . IF The calculations above will produce five lists of twelve coefficients . In each list , use the "I textcolor /color! ( words ! " func - Lion in LaTex
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
