Skip to content

export

matlab_compat · scripts/matlab_compat/wave4/export.m

: 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 Format values in this build: "html" (and inference from a .html output path). Other formats raise MATLAB:Editor:Export:UnsupportedFormat.

Name-value arguments (pair form 'Name',Value; MATLAB Name=Value call syntax is not required):

Format

"html" (required for HTML in this build; MATLAB default is "pdf").

Run

logical, default false — evaluate code cells and embed outputs inline.

CatchError

logical, default true — when Run is true, catch cell errors and include them in the HTML instead of aborting.

HideCode

logical, default false — omit code cells from the HTML.

EmbedImages

logical, default false — accepted for HTML (R2026a); no-op when the script has no figure/media assets.

OpenExportedFile

logical, 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.