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):
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.
Note Text or numeric output always comes first, regardless of the order of the commands in the group. |
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 |