Question: (in MATLAB) 1. Write a MATLAB script that will find the best-fit 7th order polynomial for data points generated by a sine function. To create
(in MATLAB)

1. Write a MATLAB script that will find the best-fit 7th order polynomial for data points generated by a sine function. To create the data, the first two lines of your script should be xlinspace (0,4*pi 10) ysin(x) Your script should fit this x-y data using polyfit, and then plot the data and the best-fit line (as a smooth curve). The resulting plot should look like this: Fiqure 5 File Ede Visw Inse Teak Desktop Wndow Help 1.5 05 1.5 Submit your script as an m-file. You do not have to submit a figure; it is included here just to give you an idea what the output should be
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
