You can share live scripts with others for teaching or demonstration,
or to provide readable, external documentation of your code. You can
share live scripts with other MATLAB® users, or as static PDF
and HTML
files
for viewing outside of MATLAB.
This table shows the different ways to share live scripts.
If you want to ... | Instructions | |
---|---|---|
Share your live script as an interactive document. | Distribute the live script file ( MATLAB supports live scripts in versions
| |
Share your live script with users of previous MATLAB versions. | Save the live script as a plain code file ( For more information, see Save Live Script as Script. | |
Share your live script as a static document capable of being viewed outside of MATLAB. | Export the script to a standard format. Available formats
include To export your live script to one of these formats, on the Live Editor tab, select Save > Export to PDF or Save > Export to HTML. The saved file closely resembles the appearance of your live script when viewed in the Editor with output inline. |