Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. Learn how to use if, elseif, and else blocks to execute statements conditionally in MATLAB. See syntax, description, and examples of comparing arrays, character vectors, and values.

  2. Learn how to use if, elseif, else, and switch statements to select which block of code to execute at run time. See examples, syntax, and related topics for conditional statements in MATLAB.

  3. Las instrucciones condicionales permiten seleccionar en tiempo de ejecución qué bloque de código se va a ejecutar. La instrucción condicional más simple es una instrucción if. Por ejemplo: % Generate a random number. a = randi(100, 1); % If it is even, divide by 2. if rem(a, 2) == 0. disp('a is even') b = a/2;

  4. Syntax. if expression statements end Description. MATLAB evaluates the expression and, if the evaluation yields a logical true or nonzero result, executes one or more MATLAB commands denoted here as statements. When nesting ifs, each if must be paired with a matching end.

  5. Learn how to use if...elseif...else...end statements in MATLAB to test various conditions. See the syntax, examples and live demo of this control flow structure.

  6. Syntax. if expression statements end if expression1 statements elseif expression2 statements else statements end Description. if conditionally executes statements. The simple form is: if expression statements end More complicated forms use else or elseif. Each if must be paired with a matching end. Arguments