Write a function that will receive x and y vectors representing data points. The function will… 1 answer below »

Write a function that will receive x and y vectors representing data points. The function will create, in one Figure Window, a plot showing these data points as circles and also in the top part a second-order polynomial that best fits these points and on the bottom a third-order polynomial. The top plot will have a line width of 3 and will be a grey color. The bottom plot will be blue, and have a line width of 2. For example, the Figure Window might look like Figure 15.15.

The axes are the defaults. Note that changing the line width also changes the size of the circles for the data points. You do not need to use a loop.

 

Looking for a Similar Assignment? Hire our Top Uk Tutors while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Active Discount Code FREE15