Anda di halaman 1dari 1

function [x iter]=proceso_iterativo(ecuacion,x0,tol,c)

x=ecuacion(x0)';
iter=x;
k=0;
while norm(x-x0)>tol && k<c
x0=x;
x=ecuacion(x0)';
k=k+1;
iter=[iter x];
end
if k>=c
x='NO CONVERGE';
end

Error using puntofijo (line 2)


Not enough input arguments.

Published with MATLAB R2015a

Anda mungkin juga menyukai