Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Clase05 IMC 2020 02 Matlab Programacion Funcion
Clase05 IMC 2020 02 Matlab Programacion Funcion
MÉTODOS
COMPUTACIONALES
CI 171
CONTENIDO
9. INTRODUCIÓN AL GUIDE
MATLAB: Archivos .m
[ Salidas ] [ Entradas ]
ENCABEZADO
COMENTARIO
CUERPO DE LA
FUNCIÓN
EJERCICIOS
f
𝒙 ∈[𝟎 ,𝟏𝟎 ] f='x^2+x+1';
x=2;
f=eval(f,x)
function v =polinomio(f,x)
f=inline(f);
v=f(x);
end
v =polinomio('(x.^3-x)./(x.^2+1)',3)
EJERCICIOS
if x*y==0
n=0;
return
end
if x>0
if y>0
n=1;
else
n=4;
end
else
if y>0
n=2;
else
n=3;
end
end