Desktop Tools and Development Environment |
Notebook Feature Reference
This section provides reference information about each of the Notebook features, listed alphabetically. To use these features, select them from the Notebook menu:
Bring MATLAB to Front
Bring MATLAB to Front brings the MATLAB Command Window to the foreground.
Define Autoinit Cell
Define AutoInit Cell creates an autoinit cell by converting the current paragraph, selected text, or input cell. An autoinit cell is an input cell that is automatically evaluated whenever you open an M-book.
Result. If you select this feature while the cursor is in a paragraph of text, Notebook converts the entire paragraph to an autoinit cell. If you select this feature while text is selected, Notebook converts the text to an autoinit cell. If you select this feature while the cursor is in an input cell, Notebook converts the input cell to an autoinit cell.
Format. Notebook formats the autoinit cell using the AutoInit style, defined as bold, dark blue, 10-point Courier New.
See Also. For more information about autoinit cells, see Defining Autoinit Input Cells for Notebook.
Define Calc Zone
Define Calc Zone defines the selected text, input cells, and output cells as a calc zone. A calc zone is a contiguous block of related text, input cells, and output cells that describes a specific operation or problem.
Result. Notebook defines a calc zone as a Word document section, placing section breaks before and after the calc zone. However, Word does not display section breaks at the beginning or end of a document.
See Also. For information about evaluating calc zones, see Evaluating a Calc Zone with Notebook. For more information about document sections, see the Microsoft Word documentation.
Define Input Cell
Define Input Cell creates an input cell by converting the current paragraph, selected text, or autoinit cell. An input cell contains a MATLAB command.
Result. If you select this feature while the cursor is in a paragraph of text, Notebook converts the entire paragraph to an input cell. If you select this feature while text is selected, Notebook converts the text to an input cell. If you select this feature while the cursor is in an autoinit cell, Notebook converts the autoinit cell to an input cell.
Format. Notebook encloses the text in cell markers and formats the cell using the Input style, defined as bold, dark green, 10-point Courier New.
See Also. For more information about creating input cells, see Defining MATLAB Commands as Input Cells for Notebook. For information about evaluating input cells, see Evaluating MATLAB Commands with Notebook.
Evaluate Calc Zone
Evaluate Calc Zone sends the input cells in the current calc zone to MATLAB to be evaluated. The current calc zone is the Word section that contains the cursor.
Result. As Notebook evaluates each input cell, it generates an output cell. When you evaluate an input cell for which there is no output cell, Notebook places the output cell immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, Notebook replaces the results in the output cell wherever it is in the M-book.
See Also. For more information, see Evaluating a Calc Zone with Notebook.
Evaluate Cell
Evaluate Cell sends the current input cell or cell group to MATLAB to be evaluated. An input cell contains a MATLAB command. A cell group is a single, multiline input cell that contains more than one MATLAB command. Notebook displays the output or an error message in an output cell.
Result. If you evaluate an input cell for which there is no output cell, Notebook places the output cell immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, Notebook replaces the results in the output cell wherever it is in the M-book. If you evaluate a cell group, all output for the cell appears in a single output cell.
An input cell or cell group is the current input cell or cell group if
See Also. For more information, see Evaluating MATLAB Commands with Notebook. For information about evaluating the entire M-book, see Evaluating an Entire M-Book.
Evaluate Loop
Evaluate Loop evaluates the selected input cells repeatedly.
For more information, see Using a Loop to Evaluate Input Cells Repeatedly with Notebook.
Evaluate M-Book
Evaluate M-book evaluates the entire M-book, sending all input cells to MATLAB to be evaluated. Notebook begins at the top of the M-book regardless of the cursor position.
Result. As Notebook evaluates each input cell, it generates an output cell. When you evaluate an input cell for which there is no output cell, Notebook places the output cell immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, Notebook replaces the results in the output cell wherever it is in the M-book.
See Also. For more information, see Evaluating an Entire M-Book.
Group Cells
Group Cells converts the input cells in the selection into a single multiline input cell called a cell group. You evaluate a cell group using Evaluate Cell. When you evaluate a cell group, all of its output follows the group and appears in a single output cell.
Result. If you include text in the selection, Notebook moves it after the cell group. However, if text precedes the first input cell in the group, the text will remain before the group.
If you include output cells in the selection, Notebook deletes them. If you select all or part of an output cell before selecting this feature, Notebook includes its input cell in the cell group.
If the first line in the cell group is an autoinit cell, the entire group acts as a sequence of autoinit cells. Otherwise, the group acts as a sequence of input cells. You can convert an entire cell group to an autoinit cell by using Define AutoInit Cell.
See Also. For more information, see Defining Cell Groups for Notebook. For information about converting a cell group to individual input cells, see the description of the Ungroup Cells.
Hide Cell Markers
Hide Cell Markers hides cell markers in the M-book.
When you select this feature, it changes to Show Cell Markers.
Note Notebook does not print cell markers whether you choose to hide them or show them on the screen. |
Notebook Options
Notebook Options allows you to examine and modify display options for numeric and graphic output.
See Also. See Printing and Formatting an M-Book for more information.
Purge Selected Output Cells
Purge Selected Output Cells deletes all output cells from the current selection.
See Also. For more information, see Deleting Output Cells with Notebook.
Toggle Graph Output for Cell
Toggle Graph Output for Cell suppresses or allows graphic output from an input cell.
If an input or autoinit cell generates figure output that you want to suppress, place the cursor in the input cell and choose this feature. The string (no graph)
will be placed after the input cell to indicate that graph output for that cell will be suppressed.
To allow graphic output for that cell, place the cursor inside the input cell and choose Toggle Graph Output for Cell again. The (no graph)
marker will be removed. This feature overrides the Embed Graphic Output in the M-book option, if that option is set in the Notebook Options dialog box.
See Also. See Embedding Graphic Output in the M-Book and Suppressing Graphic Output for Individual Input Cells in Notebook for more information.
Undefine Cells
Undefine Cells converts the selected cells to text. If no cells are selected but the cursor is in a cell, Notebook undefines that cell. Notebook removes the cell markers and reformats the cell according to the Normal style.
If you undefine an input cell, Notebook automatically undefines its output cell. However, if you undefine an output cell, Notebook does not undefine its input cell. If you undefine an output cell containing an embedded graphic, the graphic remains in the M-book but is no longer associated with an input cell.
See Also. For information about the Normal style, see Modifying Styles in the M-Book Template. For information about deleting output cells, see the description of the Purge Selected Output Cells.
Ungroup Cells
Ungroup Cells converts the current cell group into a sequence of individual input cells or autoinit cells. If the cell group is an input cell, Notebook converts the cell group to input cells. If the cell group is an autoinit cell, Notebook converts the cell group to autoinit cells. Notebook deletes the output cell for the cell group.
A cell group is the current cell group if
See Also. For information about creating cell groups, see the description of the Defining Cell Groups for Notebook.
Configuring Notebook | Source Control Interface |
© 1994-2005 The MathWorks, Inc.