Download MATLAB POLYSPACE 7 Installation guide

Transcript
Using Cells for Rapid Code Iteration and Publishing Results
Defining Cells
Cell features operate on cells, where a cell is contiguous lines of code you
want to evaluate as a whole in an M-file script. To define a cell, first be sure
that cell mode is enabled (see step ). Position the cursor just before the line
at which you want to start the cell and select Cell > Insert Cell Divider
or click the Insert Cell Divider button . MATLAB inserts a line after the
cursor that consists of two percent signs (%%), which is the “start new cell”
indicator to MATLAB. A cell consists of the line starting with %% and the
lines that follow, up to the start of the next cell, which is identified by %% at
the start of a new line.
You can also define a cell by entering two percent signs (%%) at the start
of the line where you want to begin the new cell. Alternatively, select the
6-135