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. Choose the Evaluate Loop command 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 on the Start button. The label on 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 on the Slower or Faster button. Slower increases the delay. Faster decreases the delay.

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

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


 Evaluating an Entire M-Book Converting Output Cells to Text