Page 1 of 1

Need an answer quickly

Posted: Sat May 14, 2022 7:41 pm
by answerhappygod
Need an answer quickly
Need An Answer Quickly 1
Need An Answer Quickly 1 (29.46 KiB) Viewed 36 times
Need An Answer Quickly 2
Need An Answer Quickly 2 (29.46 KiB) Viewed 36 times
= Develop a MATLAB program that performs regression and interpolation. Your function should take two araya X and Y as the input data set • Find the lineartenst-squaros regression model, y(x) = a0+1'x Output 80 and a1, and the sum of square residuals (lo. Sn). • Find the (single) polynomial that passes through all the points X,Y). Output the values of this interpolating polynomial at x 1.0 and X-20. Note: Built-in MATLAB functions may be used Function Save e Reset DE MATLA 1 function (ae,a1, Sr.1,721 - RegressionandInterpolation(X,Y) 2 Input: X,Y: arrays of the x and y coordinates of the given data set (row vectors) 4 Mutput: 0,01: parameters of the linear regression function y(x) = 1*x + 0. 6 Srt sun of the squares of residuals yi: value of the polynomial interpolation function at x = 1.0 y2: value of the polynomial interpolation function at x = 2.0 10 WRITE YOUR CODE HERE 11 12 13 14 15