About 2,640,000 results
Open links in new tab
  1. Conditional Statements - MATLAB & Simulink - MathWorks

    For both if and switch, MATLAB ® executes the code corresponding to the first true condition, and then exits the code block. Each conditional statement requires the end keyword. In general, …

  2. if - Execute statements if condition is true - MATLAB

    This MATLAB function evaluates an expression, and executes a group of statements when the expression is true.

  3. switch - Execute one of several groups of statements - MATLAB

    This MATLAB function evaluates an expression and chooses to execute one of several groups of statements.

  4. “if” statement using “or” operator. - MATLAB Answers - MATLAB …

    Feb 2, 2012 · “if” statement using “or” operator.. Learn more about if, if statement, for loop, for, cheat sheets

  5. and - Find logical AND - MATLAB - MathWorks

    This MATLAB function performs a logical AND of inputs A and B and returns an array or a table containing elements set to either logical 1 (true) or logical 0 (false).

  6. for - for loop to repeat specified number of times - MATLAB

    This MATLAB function executes a group of statements in a loop for a specified number of times.

  7. end - Terminate block of code or indicate last array index - MATLAB

    This MATLAB function is a keyword that terminates for, while, switch, try, if, and parfor statements.

  8. disp - Display value of variable - MATLAB - MathWorks

    This MATLAB function displays the value of variable X without printing the variable name.

  9. Using AND Operator in “if” statements - MATLAB Answers

    May 10, 2011 · This warning from MATLAB is silly. IF short circuits no matter whether you use & or &&. For example, The only difference left is that & will accept vectors and && wants scalars. …

  10. Print a statement to the Command Window - MathWorks

    May 5, 2017 · I am writing a program. I want to display the statement 'job done' as the output in the Command Window. How can I do it?