Code covered by the BSD License  

Highlights from
Simulating ODEs with S-Functions, step by step

image thumbnail
from Simulating ODEs with S-Functions, step by step by Jos van Schijndel
This application shows how models based on a system of ODEs are simulated.

simconstart.m
%SIMCONSTART SIMple CONstruction START
%
%JvS 12/2003

clear all

t0=0;				%start time
te=10*3600;		    %end time
T0=[10 10]';	    %start values temperature

[t,x]=ode23('simcondvfun', [t0 te], T0);

plot(t,x)

Contact us at files@mathworks.com