export
- :
path =export(file)¶ - :
path =export(file, outputfile)¶ - :
path =export(file, ___, Name, Value)¶ Convert a live script or live function (.mlx) to a standard format.
MATLAB R2026a parity for HTML export (nexus#1879 / mlx-005): render .mlx to a self-contained HTML document with optional inline outputs (
Run).Supported
Formatvalues in this build:"html"(and inference from a .html output path). Other formats raiseMATLAB:Editor:Export:UnsupportedFormat.Name-value arguments (pair form
'Name',Value; MATLABName=Valuecall syntax is not required):Format"html"(required for HTML in this build; MATLAB default is"pdf").Runlogical, default
false— evaluate code cells and embed outputs inline.CatchErrorlogical, default
true— whenRunis true, catch cell errors and include them in the HTML instead of aborting.HideCodelogical, default
false— omit code cells from the HTML.EmbedImageslogical, default
false— accepted for HTML (R2026a); no-op when the script has no figure/media assets.OpenExportedFilelogical, default
false— accepted; opening a viewer is intentionally a no-op in headless Nexus.
Return value is a character row vector: absolute path to the written file.