sample - v = w(1,:); y = w(2); % this value is not actually...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function dw = justJump2(t,w) % w is a vector with [v y] % v is the velocity at time t % y is the distance at time t % dw is a vector of the values of the derivatives m = 75; Cd = 10; g = 9.81;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: v = w(1,:); y = w(2); % this value is not actually used % but it must be included in w for ode45 dv = g - Cd*v/m; dy = v; dw = [dv; dy]; % must be a column vector! end...
View Full Document

This note was uploaded on 03/22/2012 for the course ENGINEERIM 1000 taught by Professor Ee during the Spring '12 term at Vermont Tech.

Ask a homework question - tutors are online