Development Environment | ![]() ![]() |
Creating an M-Book
This section describes how to:
Creating an M-Book from MATLAB
To create a new M-book from within MATLAB, type
notebook
at the prompt. If you are running Notebook for the first time, you may need to configure it. See Configuring Notebook for more information.
Notebook starts Microsoft Word on your system and creates a new M-book, called Document1
. Notebook adds the Notebook menu to the Word menu bar. You use this menu, illustrated below, to access Notebook commands.
Note Notebook defines Microsoft Word macros that enable MATLAB to interpret the different types of cells that hold MATLAB commands and their output. |
Creating an M-Book While Running Notebook
With Notebook running, you can also create a new M-book by selecting New M-book from the Word File menu.
Opening an Existing M-Book
You can also use the notebook
command to open an existing M-book
notebook filename
where filename
is the M-book you want to open, or you can simply double-click on an M-book file.
When you double-click on an M-book, Microsoft Word opens the M-book and starts MATLAB, if it is not already running. Notebook adds the Notebook menu to the Word menu bar.
Converting a Word Document to an M-Book
To convert a Word document to an M-book, follow these steps:
![]() | Notebook Basics | Entering MATLAB Commands in an M-Book | ![]() |