Need an answer quickly
= 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
Need an answer quickly
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Need an answer quickly
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!