About 2,840,000 results
Open links in new tab
  1. 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.

  2. Loop Control Statements - MATLAB & Simulink - MathWorks

    for statements loop a specific number of times, and keep track of each iteration with an incrementing index variable. For example, preallocate a 10-element vector, and calculate five …

  3. while - while loop to repeat when condition is true - MATLAB

    This MATLAB function evaluates an expression, and repeats the execution of a group of statements in a loop while the expression is true.

  4. How do I create a for loop in MATLAB? - MathWorks

    Mar 5, 2012 · A basic for loop in MATLAB is often used to assign to or access array elements iteratively. For example, let’s say you have a vector A, and you want to simply display each …

  5. if - Execute statements if condition is true - MATLAB - MathWorks

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

  6. colon - Vector creation, array subscripting, and for-loop iteration ...

    Specify for -Loop Iterations In the context of a for -loop, the colon specifies the loop iterations. Write a for -loop that squares a number for values of n between 1 and 4.

  7. continue - Pass control to next iteration of for or while loop

    This MATLAB function passes control to the next iteration of a for or while loop.

  8. 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.

  9. Assessing Gain and Phase Margins - MATLAB & Simulink

    Examine the effect of stability margins on closed-loop response characteristics of a control system.

  10. Iterating over an Array Using a “for” Loop. - MATLAB Answers

    Apr 17, 2016 · Use a “for” loop to calculate the elements of the Fibonacci sequence for the maximum value in “N”. Then, use another “for” loop to display the values by indexing into the …