Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started