Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5- (25 points) Data Loading: Polyfit/Polyval; Plot: (a script.m file is required for this question) The excel file quiz_q5.xlsx has the career stats of NBA

image text in transcribed

image text in transcribed

5- (25 points) Data Loading: Polyfit/Polyval; Plot: (a script.m file is required for this question) The excel file "quiz_q5.xlsx" has the career stats of NBA player Stephen Curry for the last 12 years. Please use what you have learned from this class to plot out Curry's stats of rebounds, assistants, and points, and also predict his possible assistant number of next year. In the Excel sheet, column A has the season number, column G has Curry's rebounds, column H has his assistant number, and column L has his points scored. a (6 points) Load the data file" quiz2_05.xlsx" (the file is on Canvas) to get Curry's NBA stats. Get four vectors from the data, I is the season number, reb is the rebounds, ast is the assistants, and pts is the points scored. b. (10 points) Use MATLAB command subplot and plot to plot Curry's rebounds, assistants, and points all one the same figure. Please include appropriate axis labels. Turn the grids on. c. (5 points) If Curry's assistants can be curve fitted with a 2nd order polynomial function, please use MATLAB command polyfit to fit the assistant data. Write down the equation y = f(x), here x is the season number. d. (4 points) Use MATLAB command polyval to predict Curry's assistant number for next season (season 13). 5- (25 points) Data Loading: Polyfit/Polyval; Plot: (a script.m file is required for this question) The excel file "quiz_q5.xlsx" has the career stats of NBA player Stephen Curry for the last 12 years. Please use what you have learned from this class to plot out Curry's stats of rebounds, assistants, and points, and also predict his possible assistant number of next year. In the Excel sheet, column A has the season number, column G has Curry's rebounds, column H has his assistant number, and column L has his points scored. a (6 points) Load the data file" quiz2_05.xlsx" (the file is on Canvas) to get Curry's NBA stats. Get four vectors from the data, I is the season number, reb is the rebounds, ast is the assistants, and pts is the points scored. b. (10 points) Use MATLAB command subplot and plot to plot Curry's rebounds, assistants, and points all one the same figure. Please include appropriate axis labels. Turn the grids on. c. (5 points) If Curry's assistants can be curve fitted with a 2nd order polynomial function, please use MATLAB command polyfit to fit the assistant data. Write down the equation y = f(x), here x is the season number. d. (4 points) Use MATLAB command polyval to predict Curry's assistant number for next season (season 13)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago