Ex2_19 - x0 = [5.0; 0.01]; [t, x] =...

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

View Full Document Right Arrow Icon
% This program calculates free response of a pendulum under % Columb friction. % Script Ex2_19 % t0 = 0; tf = 7.0; dt = 0.05; tspan = [t0: dt: tf];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x0 = [5.0; 0.01]; [t, x] = ode23('dfunc2_19',tspan, x0); plot(t, x(:, 1)); xlabel('t'); ylabel('x(1)'); title('Rao Example 2.19'); t...
View Full Document

Ask a homework question - tutors are online