Question: For the following set of data, write a MATLAB code to fit the curve to the data. Your MATLAB code must use 'polyfit' command to
For the following set of data, write a MATLAB code to fit the curve to the data. Your MATLAB code must use 'polyfit' command to find a and b, then plot the fitted curve in red color, also plot the data points in form of blue * (Asterisk). Name the x axis as 'X values' and y axis as 'System Response'. Put your code and the plot in an MS-Word or PDF file and upload here. To copy the figure to Word file, you can go to figure and choose "Edit" from the menu then choose "copy figure", then go to Word and paste.
x=[0.1 0.4 0.8 1 1.2 1.5]
y=[0.002 0.127 1.025 1.998 3.465 6.748]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
