Question: 1 7 . 2 2 Develop an M - file function that uses polyfit and polyval for polynomial interpolation. Here is the script you can

17.22 Develop an M-file function that uses polyfit and polyval for polynomial interpolation. Here is the script you can use to test your function
clear,clc,clf,format compact x=[1248]; fx=@(x)10*exp(0.2*x); y=fx(x); yint=polyint(x,y,3) ytrue=fx(3) et=abs((ytrueyint)/ytrue)*100.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!