Installation guide

6 Editing and Debugging M-Files
2 Position the cursor at the start of the first line. Select Cell > Insert Cell
Divider.
The Editor/D ebugger inserts
%% as the first line and moves the rest of the
file down one line. All lines are highlighted in yellow, indicating that the
entire file is a single cell, unless you do not have that display preference
for cells selected.
3 Enter a cell title f ollowing the %%. Typeaspacefirst,followedbythe
description.
Calculate and Plot Sine Wave
4 Position the cursor at the s ta r t of line 7, title.... Select Cell > Insert
Cell Divider.
The Editor/Debugger inserts a line containing only
%% at line 7 and moves
the remaining lines down by one line. A horizontal line that helps you
distinguish the two cells appears above the
%% line, unless you do not
have that display preference for cellsselected. Lines7through12are
highlighted in yellow, indicating they comprise the current cell.
5 Enteracelltitleforthenewcell. Online7,typeaspaceafterthe%%,
followed by the description
Modify Plot Properties
Savethefile. Thefileappearsasshowninthisfigure.
6-138