Installation guide

8 Publishing Results
3 Specify the input cell to be evaluated by selecting it with the mouse or by
placing the cursor in it. Then select Notebook > Evaluate Cell or pres s
Ctrl+Enter.
Notebook evaluates the input cell and displays the results in a output cell
immediately following the input cell. If there is already an output cell,
Notebook replaces its contents, where ve r it is in the M-book. For exam ple:
This is a sample M-book.
[a = magic (3) ]
[a=
816
357
492
]
The text in the output cell is blue and is enclosed within cell markers. Cell
markers are bold, gray brackets. They differ from the brackets used to
enclose matrices by their size and weight. Error messages appear in red. For
information about changing these default formats, see “Modifying Styles in
the M-Book Template” on page 8-47.
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” o n page 8-37.
When MATLAB evaluates a cell group, the output for a ll commands in the
group appears in a single output cell. By default, Notebook places the output
cell immedia tely after the cell g roup the first time the cell gro up is evaluated.
Ifyouevaluateacellgroupwithanexistingoutputcell,Notebookplacesthe
results in the outp ut cell wh ere ver it is located in the M - bo ok .
8-42