Installation guide

Using Cells for Rapid Code Iterati on a nd P ub lishi ng Results
Modifying Values in a Cell
You can use cell features to modify numbers in a cell, which a ls o automatically
reevaluates the cell. This helps you experiment with and fine-tune your code.
Tomodifyanumberinacell,selectthenumber(orplacethecursornear
it) and use the v alue modification tool in th e cell toolbar. Using this tool,
you can specify a number and p ress the appropriate math operator to add
(increment), subtract (decrement), multiply, or divide the number. The cell
then automatically reevaluates.
Yo u can use the numeric keypad operator keys (-, +, /,and*) instead of the
operator buttons on the toolbar.
Note MATLAB does not automatically save changes you make to values
using the cell toolbar. To save changes, select File > Save.
Example Evaluate Cells
In this example, modify the values for x in sine_wave.m:
1 Run the first cell in sine_wav.m. Click somewhere in the first cell, that
is, b etw een lines 1 and 6. Select Cell > Evaluate Current Cell.The
following figure appears.
6-141