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

New to MATLAB?

MATLAB Homework Help Please

Asked by anon

anon (view profile)

on 27 Mar 2013

I have no idea how to do this one.

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


anon (view profile)


No products are associated with this question.

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

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.


Image Analyst

Image Analyst (view profile)

Contact us