
8 Publishing Results
PublishingtoHTML,XML,LaTeX,Word,andPowerPoint
Using Cells
In this section...
“About Publishing M-Files” on page 8-2
“Publishing Scripts and Functions—Differences” on page 8-3
“Example of Publishing Without Text Markup” on page 8-4
“Example of Publishin g with Te xt Markup” o n page 8-6
About Publis
hing M-Files
When you have c
ompleted writing and debugging an M-file, use the M-file
cell feature
s in the Editor/Debugger to quickly publish the M-file and its
results i n an
y o f several presentation formats: HT ML, XML, L aTeX, or, when
the applicat
ions are installed, Microsoft Word or PowerPoint. This allows
you to share
your work w ith others, presenting not only the code, but also
commentary
on the code and results from running the file.
Publishing
features evaluate M-files cell-by-cell and display the contents of a
cell in a pre
sentation quality document. For M-file scripts, publishing also
displays t
he results. For e xample, published documents include bold headings
for each se
ction of the file. For M-file scripts, published docum ents i nclude
output to t
he Command Window and figures. T he cells in the Editor/Debugger
that you u
se for publishing are the same ones you might already have used
for rapid
code iteration—see “Using Cells for Rapid Code Itera tio n and
Publishi
ng Results” on page 6-133.
If you hav
e an active Internet connection, you can watch the Publishing M
Code fro
m the Ed itor/Debugger video demo for an overview of t he major
functio
nality.
This is t
he overall process to publish an M-file using cell features in the
Editor/
Debugger:
1 Enable cell mode and define cells as described in steps 1 through 3 in “Using
Cells for Rapid Code Iteration and Publishing Results” on page 6-133.
When you publish the file without adding any text markup, comments at
8-2
Kommentare zu diesen Handbüchern