cp1 - plot(t,A(t)) function udot = fun1(t,k,u0) xdot(2) =...

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

View Full Document Right Arrow Icon
f=inline('k*(A(t)-u(t))') f A(t)=35-14*cos((3.14/12)*(tspan-3)); %w0=3.14/12; u(0) = u0 tspan=[0 24]; ode45(f, [0 24], u0)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot(t,A(t)) function udot = fun1(t,k,u0) xdot(2) = u'(t,k) = k*(A(t)-u(t))...
View Full Document

This note was uploaded on 01/24/2011 for the course ENGR 1020 taught by Professor Keith during the Spring '10 term at Utah State University.

Ask a homework question - tutors are online