Desktop Tools and Development Environment |
Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cells
Overview of Publishing
When you have completed writing and debugging an M-file script, use the Editor/Debugger cell features to quickly publish the M-file and its results in any of several presentation formats: HTML, XML, LaTeX, or, when the applications are installed, Microsoft Word or PowerPoint. This allows you to share your work with others, presenting not only the code, but also commentary on the code and results from running the file.
Publishing features evaluate each cell in the M-file script and display the contents of the cell along with the results in a presentation quality document. For example, published documents include output to the Command Window and figures, and bold headings for each section of the file. The cells in the Editor/Debugger you use for publishing are the same ones you might already have used for improving your code as described in Rapid Code Iteration Using Cells.
If you are viewing this document in the Help browser, you can watch the video demo Publishing M Code from the Editor/Debugger for an overview of the major functionality.
This is the overall process to publish an M-file using cell features in the Editor/Debugger:
MATLAB publishes the M-file by writing the cell titles, comment text, and code to a file using the specified format. MATLAB also evaluates the cells and writes the results of the evaluation to the output file a. Any figures created during the evaluation are saved as graphics files, and are shown with the results.
Publishing Results | Example of Publishing Without Text Markup |
© 1994-2005 The MathWorks, Inc.