Question: Q 1 ) Polynomial fitting is widely used in engineering. One application is fitting a polynomial to noisy experimental data. To practice that you can
Q Polynomial fitting is widely used in engineering. One application is fitting a polynomial to
noisy experimental data. To practice that you can consider the following scenario.
An object is left to fall freely from a certain elevation. During the fall a sensor mounted on the
object records the time of the fall and the elevation of the object. However, there is always a
noise in the measured data which needs to be considered when evaluating the data.
We can generate this kind of data in Matlab in the following way.
a Write a Matlab script that evaluates the function for every element of the array and
plots t vs yMeasured. yMeasured
b Suppose we wish to approximate this data generated by the Matlab function above by
a nd order polynomial. Find by hand the least square fit to this data. Carry out all the
calculations by hand and show them clearly on paper.
c Write a Matlab script that calculates the order polynomial fit for the same data and
have both the real data yMeasured and the fitted polynomial datayFit in the same plot.
Please use the "polyfit" function for fitting and "polyval" function for the evaluation of the
polynomial fit. Check the lecture notes for the use or refer to Matlab help.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
