Beruflich Dokumente
Kultur Dokumente
Francisco Teneda
Henry Salazar
Febrero 2015
%funcion Euler:
function [t,x] = euler(f,t0,tf,x0,n)
h = (tf-t0)/n;
t = t0:h:tf;
x = zeros(n+1,1); %reservo memoria
x(1) = x0;
for i=1:n
x(i+1) = x(i) + f(t(i),x(i)*h)
end
end
%Grafica:
Ejercicio N°2