Development Environment    

Evaluating Cell Groups

You evaluate a cell group the same way you evaluate an input cell (because a cell group is an input cell):

  1. Position the cursor anywhere in the cell or in its output cell.
  2. Select Notebook -> Evaluate Cell or press Ctrl+Enter.

For information about creating a cell group, see Defining Cell Groups.

When MATLAB evaluates a cell group, the output for all commands in the group appears in a single output cell. By default, Notebook places the output cell immediately after the cell group the first time the cell group is evaluated. If you evaluate a cell group with an existing output cell, Notebook places the results in the output cell wherever it is located in the M-book.

The illustration shows a cell group and the figure created when you evaluate the cell group.


  Evaluating MATLAB Commands Evaluating a Range of Input Cells