ART-2-58991-2025SU
Quiz: [Unit 4] [Chapter 4...
ENGR 5: Programming a...
Unit 4 Chap
- Submit your attempt derore the detanne posted on Lanvas.
lips for Success
- Don't rush; read each question carefully.
- 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 11
Given the speed and mpg data:
speed = [30, 40, 50, 60, 70];
mpg = [35, 33, 31, 29, 27];
After fitting the line using polyfit and assigning the result to a variable how do you estimate mpg at 55 mph ?
interp1(speed, mpg, 55, 'spline')
polyval(coeffs, 55)
polyfit(55, coeffs)
diff(mpg)/diff(speed)
Previous
Nex
Quiz saved at 6:07pm
Sub
80
a
0
\( 4 \Delta \)
DII
F3
F4
F5
F6
F7
FB
59
\( E \)
R
\%
\&
5
6
7
8