Desktop Tools and Development Environment Previous page   Next Page

Entering MATLAB Commands in an M-Book

You enter MATLAB commands in an M-book the same way you enter text in any other Word document. For example, you can enter the following text in a Word document. The example uses text in Courier Font but you can use any font:

Here is a sample M-book.

a = magic(3)

To execute the MATLAB magic command in this document, you must

MATLAB displays the output of the command in the Word document in an output cell.


Previous page  Creating or Opening an M-Book Protecting the Integrity of Your Workspace in M-Books Next page

© 1994-2005 The MathWorks, Inc.