Answered step by step
Verified Expert Solution
Link Copied!

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

Q1) 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.
[20] a) Write a Matlab script that evaluates the "f" function for every element of the t array and
plots t vs. yMeasured. (yMeasured =f(t))
[50] b) Suppose we wish to approximate this data (generated by the Matlab function above) by
a 2nd 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.)
[30] c) Write a Matlab script that calculates the 2nd order polynomial fit for the same data and
have both the real data (yMeasured) and the fitted polynomial data(yFit) 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions