Evaluating a Calc Zone To evaluate a calc zone: 1 Position the cursor anywhere in the calc zone...

Linki


» Dzieci to nie książeczki do kolorowania. Nie da się wypełnić ich naszymi ulubionymi kolorami.
»
??Press the Minus key to activate the JAWS Cursor...
»
f (m, n) = 1 (m + n − 2)(m + n − 1) + m 2 for each ordered pair (m, n) of positive integers m and n...
»
6 łoszn kojdesz (język święty), język Biblii, lecz masy ludowe w miastach i miasteczkach...
»
113 <SCRIPT LANGUAGE="JavaScript1...
»
Przede wszystkim zrobiła z niego mężczyznę...
»
Most copywriters will recognize this letter as an imitation of the famous Martin Conroy ‶Wall Street Journal Letter,” which was one of the most successful direct-mail...
»
jest pierwszy silnik pomocniczy...
»
wzrokiem powiódł po zebranych chłopcach i dziewczętach...
»
Pokręciłem głową...
»
Jakie obowiÂązki w zakresie bhp w szczególnoœci ci¹¿¹ na pra- cownikach? WedÂług art...

Dzieci to nie książeczki do kolorowania. Nie da się wypełnić ich naszymi ulubionymi kolorami.


10-14
Evaluating MATLAB Commands
2 Select the Evaluate Calc Zone command from the Notebook menu or press
Alt+Enter.
For information about creating a calc zone, see “Defining Calc Zones” on
page 10-10.
By default, Notebook places the output cell immediately after the calc zone the
first time the calc zone is evaluated. If you evaluate a calc zone with an existing
output cell, Notebook places the results in the output cell wherever it is located
in the M-book.
Evaluating an Entire M-Book
To evaluate the entire M-book, either select the Evaluate M-book command or
press Alt+R.
Notebook begins at the top of the M-book regardless of the cursor position and
evaluates each input cell in the M-book. As it evaluates the M-book, Notebook
inserts new output cells or replaces existing output cells.
Controlling Execution of Multiple Commands
When you evaluate an entire M-book, and an error occurs, evaluation
continues. If you want to stop evaluation if an error occurs, follow this
procedure:
1 Choose Notebook Options from the Notebook menu.
2 Click the Stop evaluating on error check box.
Using a Loop to Evaluate Input Cells Repeatedly
To evaluate a sequence of MATLAB commands repeatedly:
1 Use the mouse to select the input cells, including any text or output cells
located between them.
2 Choose the Evaluate Loop command or press Alt+L. Notebook displays the
Evaluate Loop dialog box.
10-15
10 Using Notebook
3 Enter the number of times you want MATLAB to evaluate the selected
commands in the Stop After field, then click on the Start button. The label
on the button changes to Stop. Notebook begins evaluating the commands
and indicates the number of completed iterations in the Loop Count field.
You can increase or decrease the delay at the end of each iteration by clicking
on the Slower or Faster button. Slower increases the delay. Faster decreases
the delay.
To suspend evaluation of the commands, click on the Pause button. The label
on the button changes to Resume. Click on the Resume button to continue
evaluation.
To stop processing the commands, click on the Stop button. To close the
Evaluate Loop dialog box, click on the Close button.
Converting Output Cells to Text
You can convert an output cell to text using the Undefine Cells command. If
the output is numeric or textual, Notebook removes the cell markers and
converts the cell contents to text according to the Microsoft Word Normal style.
If the output is graphical, Notebook removes the cell markers and dissociates
the graphic from its input cell, but does not alter its contents.
Note Undefining an output cell does not affect the associated input cell.
To undefine an output cell:
1 Select the output cell you want to undefine.
10-16
Evaluating MATLAB Commands
2 Choose the Undefine Cells command from the Notebook menu or press
Alt+U.
Deleting Output Cells
To delete output cells:
1 Select an output cell, using the mouse, or place the cursor in the output cell.
2 Choose the Purge Output Cells command from the Notebook menu or press
Alt+P.
If you select a range of input cells, each with output cells, Notebook deletes all
the associated output cells.
10-17
10 Using Notebook
Printing and Formatting an M-Book
This section describes:
• “Printing an M-Book” on page 10-18
• “Modifying Styles in the M-Book Template” on page 10-18
• “Choosing Loose or Compact Format” on page 10-19
• “Controlling Numeric Output Format” on page 10-20
• “Controlling Graphic Output” on page 10-20
Printing an M-Book
You can print all or part of an M-book by selecting the Print command from the
File menu. Word follows these rules when printing M-book cells and graphics:
• Cell markers are not printed.
• Input cells, autoinit cells, and output cells (including error messages) are
printed according to their defined styles. If you prefer to print these cells
using black type instead of colors or shades of gray, you can modify the styles.
Modifying Styles in the M-Book Template
You can control the appearance of the text in your M-book by modifying the
predefined styles stored in the M-book template. These styles control the
appearance of text and cells. By default, M-books use the Word Normal style
for all other text.
For example, if you print an M-book on a color printer, input cells appear dark
green, output and autoinit cells appear dark blue, and error messages appear
red. If you print the M-book on a grayscale printer, these cells appear as shades
of gray. To print these cells using black type, you need to modify the color of the
Input, Output, AutoInit, and Error styles in the M-book template.
The table below describes the default styles used by Notebook. If you modify
styles, you can use the information in the tables below to help you return the
styles to their original settings. For general information about using styles in
Word documents, see the Word documentation.
10-18
Printing and Formatting an M-Book
Style
Font
Size
Weight
Color
Normal
Times New Roman
10 points
Black
AutoInit
Courier New
10 points
Bold
Dark Blue
Error
Courier New
10 points
Bold
Red
Input
Courier New
10 points
Bold
Dark Green
Output
Courier New
10 points
Blue
When you change a style, Word applies the change to all characters in the
M-book that use that style and gives you the option to change the template. Be
cautious about making changes to the template. If you choose to apply the
changes to the template, you will affect all new M-books you create using the
template. See the Word documentation for more information.
Choosing Loose or Compact Format
You can specify whether a blank line appears between the input and output
cells by selecting Loose or Compact format.
1 Click on the Notebook menu and select Notebook Options.
2 In the Notebook Options dialog box, select either the Loose or Compact
check box. Loose format adds an empty line. Compact format does not.
3 Click OK.

Powered by MyScript