name_state - n x 1 vector of time derivatves of state...

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

View Full Document Right Arrow Icon
function f = name_state(x,t) % function f = name_state(x,t) % This M-file lists the state equations % INPUTS % x(t) n x 1 vector of state variables at time t % t time % OUTPUTS % f(x,t)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n x 1 vector of time derivatves of state variables % % Free mass-spring-damper system % m = 1; c = 2; k = 50; % system parameters f(1) = x(2); f(2) = (-c*x(2)-k*x(1))/m;...
View Full Document

This note was uploaded on 09/17/2009 for the course MAE 469 taught by Professor Silverberg during the Fall '08 term at N.C. State.

Ask a homework question - tutors are online