when i run...?the command page write Undefined function????
Mostrar comentarios más antiguos
clear all;
clc
a=input('enter fun')
f=inline(a)
x(1)=input('enter first guess: ');
x(2)=input('enter second guess: ');
n=input('enter tolerance: ');
iteration=0;
i=2;
while (abs(x(i))>0.00001)
x(i+1)=x(i)-f(x(i))*(x(i)-x(i-1))/(f(x(i)-f(x(i-1))));
if (f(x(i+1))~=0)
i=i+1;
iteration=iteration+1
root=x(i)
break
else
root=x(i)
iteration=iteration
break
break
end
end
1 comentario
Stephen23
el 25 de Nov. de 2015
@masoud mansouri: can you please post the complete error message. This means all of the red text. It contains lots of useful information for us.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Scripts en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!