Installation guide

Evaluating MATLAB Commands with Notebook
Evaluating MATLAB Commands with Notebook
In this section...
“Evaluating Input Commands with Notebook” on page 8-41
“Evaluating Cell Groups with Notebook” on page 8-42
“Evaluating a Range of Input C ells with Notebook” on page 8-43
“Evaluating a Calc Zone with Notebook” on page 8-44
“Evaluating an Entire M-Book” on page 8-44
“Using a Loop to Evaluate Input Cells Repeatedly with Notebook” on page
8-45
“Converting Output Cells to Text with Notebook” on page 8-46
“Deleting Output Cells with Notebook” on page 8-46
Evaluating Input Commands w ith Notebook
After you define a MATLAB command as an input cell, or as an autoinit cell ,
you can evaluate it in your M-book . Use the following steps to define and
evaluate a MATLAB command:
1 Type the command into the M-book as text. For example:
This is a sam
ple M-book
a = magic(3)
2 Position the cursor anywhere in the command. If the command is embedded
inalineoftext,usethemousetoselectit.ThenselectNotebook > Define
Input Cell or press Alt+D.
Notebook defines the MATLAB command as an input cell. For example:
This is a samp
le M-book
[a = magic(3)
]
8-41