dfunc2_19 - % if (abs(x(2)) > 1e-4) % dx(2) =...

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

View Full Document Right Arrow Icon
function dx = dfunc2_19(t, x) f dx = zeros(2,1); d m = 10; k = 200; mu = 0.5; g = 9.81; dx(1) = x(2); dx(2) = -mu*g*sign(x(2)) - k/m*x(1);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % if (abs(x(2)) > 1e-4) % dx(2) = -mu*g*sign(x(2)) - k/m*x(1); % else % dx(2) = -k/m*x(1); % end...
View Full Document

This note was uploaded on 06/29/2011 for the course MAE 315 taught by Professor Wu during the Spring '08 term at N.C. State.

Ask a homework question - tutors are online