MATLAB Answers


MATLAB Homework Help Please

Asked by anon
on 27 Mar 2013

I have no idea how to do this one.

Please show all working code. Any help will be appreciated.


No products are associated with this question.

1 Answer

Answer by Image Analyst
on 27 Mar 2013

Define the arrays like

t = 0:10;
v = [40, 42, 45, and so on....

then use Simpson's rule as you learned in class to calculate the distance traveled in each time period and sum them. It may be easiest for you to use a for loop.


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!