Desktop Tools and Development Environment Previous page   Next Page

Evaluating Cell Groups with Notebook

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 for Notebook.

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.

Image of sample cell group in an M-book.


Previous page  Evaluating MATLAB Commands with Notebook Evaluating a Range of Input Cells with Notebook Next page

© 1994-2005 The MathWorks, Inc.