%
%  code2Wa.m -- 11 sept 02 -- djm
%
%  - Euler's method example

code1Fa
clear

%  set t-points & initial v 

N = input('input number of t-points on 2<t=<10 = ')
h = 8/N;

t = 2:h:10;
v(1) = 44;

%  euler method iteration

for j=1:N
  v(j+1) = v(j) + (49-v(j))/5*h;
end

%  plot t_j versus v_j

plot(t,v,'bx')
title('\bf Euler''s method')
