step1 - % t time % deltaT time step % OUTPUTS % xnew n x 1...

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

View Full Document Right Arrow Icon
function xnew = step1(filex,t,deltaT) % function xnew = step1(filex,t,deltaT) % This M-file performs a 1st-order numerical integration step. % INPUTS % file name of the file that contains the state equations % x n x 1 vector of state variables at time 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: % t time % deltaT time step % OUTPUTS % xnew n x 1 vector of state variables at time t + deltaT % CALLS % M-file % eval(['f = ',file,'(x,t);']) deltax = deltaT*f; xnew = x + deltax;...
View Full Document

Ask a homework question - tutors are online