Use MATLAB actively to test and verify behavior.
If a question asks for output, run the code to confirm your answer. Use syntax as reviewed in class.
Question 10
Given the speed and mpg data:
\[
\begin{array}{l}
\text { speed }=[30,40,50,60,70] ; \\
\mathrm{mpg}=[35,33,31,29,27] ;
\end{array}
\]
What does the output of polyfit(speed, mpg, 1) represent?
The fuel efficiency at 55 mph
The average mpg
The slope and intercept of the best-fit line
A table of all speed-mpg values
Previous
No new data to save. Last checked at 6:06pm
80
a
0
\( B \)
44
DII
F3
FA
F5
F6
F7
FB
\( E \)
R
T
6
7
8