{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

dfunc2_19 - if(abs(x(2> 1e-4 dx(2 =-mu*g*sign(x(2 k/m*x(1...

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online