Skip to Main Content Skip to Search
Product Documentation

Notebook Feature Reference

This section provides reference information about each of the MATLAB Notebook features, listed alphabetically. To use these features, select them from the Notebook menu in Microsoft Word. In Word 2007 and later releases, the Notebook menu is on the Add-Ins tab.

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 a MATLAB Notebook.

Result

If you select this feature while the cursor is in a paragraph of text, the entire paragraph converts to an autoinit cell. If you select this feature while text is selected, the text converts to an autoinit cell. If you select this feature while the cursor is in an input cell, the input cell converts to an autoinit cell.

Format

The autoinit cell format uses 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 a MATLAB 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

A calc zone is defined as a Word document section. Section breaks appear 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. 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, the entire paragraph converts to an input cell. If you select this feature while text is selected, the text converts to an input cell. If you select this feature while the cursor is in an autoinit cell, the autoinit cell converts to an input cell.

Format

The text appears enclosed in cell markers and the cell uses 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 a MATLAB Notebook. For information about evaluating input cells, see Evaluating MATLAB Commands in a MATLAB Notebook.

Evaluate Calc Zone

Evaluate Calc Zone sends the input cells in the current calc zone to MATLAB for evaluation. The current calc zone is the Word section that contains the cursor.

Result

As each input cell evaluates, it generates an output cell. When you evaluate an input cell for which there is no output cell, the output cell appears immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, the results in the output cell are replaced, wherever it is in the MATLAB Notebook.

See Also

For more information, see Evaluating a Calc Zone.

Evaluate Cell

Evaluate Cell sends the current input cell or cell group to MATLAB for evaluation. An input cell contains a MATLAB command. A cell group is a single, multiline input cell that contains more than one MATLAB command. The output or an error message displays in an output cell.

Result

If you evaluate an input cell for which there is no output cell, the output cell appears immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, the results in the output cell are replaced, wherever that cell is in the MATLAB Notebook. 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 in a MATLAB Notebook. For information about evaluating the entire MATLAB Notebook, see Evaluating an Entire MATLAB Notebook.

Evaluate Loop

Evaluate Loop evaluates the selected input cells repeatedly.

For more information, see Using a Loop to Evaluate Input Cells Repeatedly.

Evaluate MATLAB Notebook

Evaluate MATLAB Notebook evaluates the entire MATLAB Notebook, sending all input cells to MATLAB for evaluation. Evaluation begins at the top of the MATLAB Notebook regardless of the cursor position.

Result

As each input cell evaluations, it generates an output cell. When you evaluate an input cell for which there is no output cell, the output cell appears immediately after the input cell that generated it. If you evaluate an input cell for which there is an output cell, the results are replaced in the output cell wherever it is in the MATLAB Notebook.

See Also

For more information, see Evaluating an Entire MATLAB Notebook.

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, it appears after the cell group. However, if text precedes the first input cell in the group, the text remains before the group.

If you include output cells in the selection, they disappear. If you select all or part of an output cell before selecting this feature, its input cell appears 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 a MATLAB Notebook. For information about converting a cell group to individual input cells, see Ungroup Cells.

Hide Cell Markers

Hide Cell Markers hides cell markers in the MATLAB Notebook.

When you select this feature, it changes to Show Cell Markers.

Notebook Options

Notebook Options allows you to examine and modify display options for numeric and graphic output.

See Also

See Printing and Formatting a MATLAB Notebook 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.

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) appears 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 disappears. This feature overrides the Embed figures in MATLAB Notebook option, if that option is set in the Notebook Options dialog box.

See Also

See Embedding Graphic Output in a MATLAB Notebook and Suppressing Graphic Output for Individual Input Cells 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, that cell becomes undefined. Cell markers disappear and the cell reformats according to the Normal style.

If you undefine an input cell, its output cell automatically undefines. However, if you undefine an output cell, its input cell does not undefine. If you undefine an output cell containing an embedded graphic, the graphic remains in the MATLAB Notebook but is no longer associated with an input cell.

See Also

For information about the Normal style, see Modifying Styles in the MATLAB Notebook Template. For information about deleting output cells, see 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, the cell group converts to input cells. If the cell group is an autoinit cell, the cell group converts to autoinit cells. The output cell for the cell group disappears.

A cell group is the current cell group if:

See Also

For information about creating cell groups, see the description of Defining Cell Groups for a MATLAB Notebook.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS