% Matlab diary from cs111, Nov 28 2007. % % This is what I typed in class. % % Type it into Matlab yourself to % reproduce the output I showed. diary on edit weightf ode23tx('weightf',[0 20], [1/2 ; 0]); legend('x','xdot') ode23tx('weightf',[0 20], [1+1/2 ; 0]); ode23tx('weightf',[0 20], [1 ; 0]); ode23tx('weightf',[0 20], [1 ; 1/4]); clc [T,Y] = ode23tx('weightf',[0 20], [1 ; 1/4]); T Y size(T) size(Y) edit ode1 ode1('weightf',[0 20], [1/2 ; 0]); ode1('weightf',[0 20], [1/2 ; 0], .1); shg ode1('weightf',[0 20], [1/2 ; 0], .01); clc edit ode23 edit ode23tx diary off