Development Environment |
Defining Cell Groups
You can collect several input cells into a single input cell. This is called a cell group. Because all the output from a cell group appears in a single output cell that Notebook places immediately after the group, cell groups are useful when several MATLAB commands are needed, such as, to fully define a graphic.
For example, if you define all the MATLAB commands that produce a graphic as a cell group and then evaluate the cell group, Notebook generates a single graphic that includes all the graphic components defined in the commands. If instead you define all the MATLAB commands that generate the graphic as separate input cells, evaluating the cells generates multiple graphic output cells.
See Evaluating Cell Groups for information about evaluating a cell group. For information about undefining a cell group, see Ungroup Cells.
Creating a Cell Group
Notebook converts the selected cells into a cell group and replaces cell markers with a single pair that surrounds the group:
When you create a cell group, Notebook defines it as an input cell unless its first line is an autoinit cell, in which case Notebook defines the group as an autoinit cell.
Defining MATLAB Commands as Input Cells | Defining Autoinit Input Cells |