
Programación: uso del IF...THEN.
En este curso aprenderás de MATLAB, la sintaxis de la estructura de control IF...THEN, con un ejemplo.
function y=ejemplo_if(x) % si x<0 y=3 % si 0<=x<=4 y=1 % en otro caso y=0 if x<0 y=3; elseif x>4 y=0; else y=1; end end
© Profesor Favián Arenas. 2023. Diseñado por HTML Codex