Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Matlab function that will receive x and y vectors representing data points. Write a function called myfit(x,y) that will receive x and y
Write a Matlab function that will receive x and y vectors representing data points.
Write a function called myfit(x,y) that will receive x and y vectors representing data points. The function will create, in one Figure Window, a plot on the top part, showing these data points as circles and a line plot showing second-order polynomial fit. The bottom plot will also show the data points as circles but with a third-order polynomial fit. Use the same color for line and points in each plot. Save your code in myfit.m You can use x1:12 and y[10 3 6 11 15 14 16 12 196 7 81 as test input. A sample figure is shown below 2nd order 20 10 6 10 3rd order 20 15 10 6 10 12Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started