Documentos de Académico
Documentos de Profesional
Documentos de Cultura
7.0
Juego de instrucciones
para la programacin
en MATLAB 7.0
INSTRUCCIONES DE ENTRADA
while condicin
Instrucciones de Comando
end
INSTRUCCIONES PARA EL CONTROL
DE FLUJO
if condicin
comandos
end
INSTRUCCIONES PARA EL CONTROL
DE FLUJO
If condicin1
comandos1
else
comandos2
end
INSTRUCCIONES PARA EL CONTROL
DE FLUJO
If condicin1
comando1
elseif condicin2
comando2
elseif condicin3
comando3
.
else
end
INSTRUCCIONES PARA EL CONTROL
DE FLUJO
try
instruccin
..
instruccin
catch
instruccin
..
end
INSTRUCCIONES DE SALIDA
Ejemplo:
A=rand(3,4)
try
f=input(Ingrese la fila );
g=input(Ingrese la columna );
n=A(f,g)
disp{[A( num2str(f) , num2str(g) ) = num2str(n)]);
catch
disp(error)
end
INSTRUCCIONES PARA EL CONTROL
DE FLUJO