MATLAB
Find the area under the curve for the original dataset. Compare it to the area under the curve for your fittedpolynomial from under script. Plot the sorted data to show it issorted. Extra credit: Compare to the fitted polynomial atincreasing degree (2,3,4). Are you converging (getting closer) tothe answer from the original data set as you increase thedegree?
Deliverables:
Script for calculating area under the curve
Must use trapz and integral
Command window output of answers
Plot of data, sorted, with line rendering style
[Extra credit:] Answer to question, degree 3 & 4polynomials
Step by Step Instructions:
Start with your answer to problem 1.
Calculate the area under the
PayPal Gateway not configured
PayPal Gateway not configured