Development Environment    

Using a Loop to Evaluate Input Cells Repeatedly

To evaluate a sequence of MATLAB commands repeatedly:

  1. Use the mouse to select the input cells, including any text or output cells located between them.
  2. Select Notebook -> Evaluate Loop or press Alt+L. Notebook displays the Evaluate Loop dialog box.

  3. Enter the number of times you want MATLAB to evaluate the selected commands in the Stop After field, then click Start. The button changes to Stop. Notebook begins evaluating the commands and indicates the number of completed iterations in the Loop Count field.

You can increase or decrease the delay at the end of each iteration by clicking Slower or Faster. Slower increases the delay. Faster decreases the delay.

To suspend evaluation of the commands, click Pause. The button changes to Resume. Click Resume to continue evaluation.

To stop processing the commands, click Stop. To close the Evaluate Loop dialog box, click Close.


  Evaluating an Entire M-Book Converting Output Cells to Text