Question: MATLAB HELP NEEDED: Modify your solution to last weeks exercise (poly_curv_fit.m) by implementing left division rather than explicitly implementing the least-squares matrix solution. -----------------poly_curv_fit.m BELOW-------------------
MATLAB HELP NEEDED:
Modify your solution to last weeks exercise (poly_curv_fit.m) by implementing left division rather than explicitly implementing the least-squares matrix solution. -----------------poly_curv_fit.m BELOW-------------------
clear all close all clc
load noisy_poly.mat; n = length(y); x = 1:1:n; PolyOrder=3; p = polyfit(x,y,PolyOrder); f = polyval(p,x); figure, plot(x,y,'.',x,f,'-'); xlabel('---- X --->'); ylabel('---- Y --->'); str = strcat('Plot between noisy-poly.mat and X at Poly Order = ',num2str(PolyOrder)); title(str);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
