Question: 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


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
Get step-by-step solutions from verified subject matter experts
