Development Environment    

Evaluating MATLAB Commands 

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,
  2. Position the cursor anywhere in the command and choose the Define Input Cell command from the Notebook menu or press Alt+D. If the command is embedded in a line of text, use the mouse to select it. Notebook defines the MATLAB command as an input cell. For example,
  3. Choose the Evaluate Cell command from the Notebook menu or press Ctrl+Enter. You can specify the input cell to be evaluated by selecting it with the mouse, or placing the cursor in it.

    Notebook evaluates the input cell and displays the results in a output cell immediately following the input cell. If there is already an output cell, Notebook replaces its contents, wherever it is in the M-book. For example,

The text in the output cell is blue and is enclosed within cell markers. Cell markers are bold, gray brackets. They differ from the brackets used to enclose matrices by their size and weight. Error messages appear in red. For information about changing these default formats, see Modifying Styles in the M-Book Template.

For more information about evaluating MATLAB commands in an M-book, see:


 Converting an Input Cell to Text Evaluating Cell Groups