Question: table [ [ Wind Speed x , m p h , 1 4 , 2 2 , 3 0 , 3 8 , 4
tableWind Speed Power
Use quadratic splines interpolation with the data in Problem to calculate the power at the following wind speeds: a mph and b mph For this problem, perform the calculations in MATLAB.
Start a new MATLAB script and save it as quadInterp.m At the beginning of the script, create vectors and with the data points. pts
Plot the data points. pts s
Open a new figure ise command figure
Plot versus Use solid red circles for each data point and set the line width to
Label the axes and give the figure a title.
Set the font size of the current axes of the figure to Use setgca 'fontsize',
There are data points and therefore splines. The equation for each spline is
Write down the equations you need to solve in your homework report, like what we did in class.
Formulate the system of linear equations into a matrix form
Provide values of and in your homework report. Solve for using the backslash command in MATLAB. Provide the equations for the fitted quadratic splines in your homework report. pts
Plot the data points and the fitted polynomials against each other in a single plot. Include the plot in your homework report. What do you observe compared to linear splines interpolation? pts
Calculate the power at the following wind speeds: a mph and b mph Provide the values in your homework report. pts
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
