mlxread
- :
s =mlxread(filename)¶ - :
s =mlxread(filename, name, value, …)¶ Read a MATLAB Live Script (.mlx) file and return its cells and metadata.
An .mlx file is an Open Packaging Conventions (OPC) ZIP archive. Code and formatted text live in matlab/document.xml; package metadata lives under metadata/.
s is a scalar struct with fields:
CellsAn N-by-1 cell array. Each entry is a struct with field
Type("code"or"text") and, when requested, eitherCodeorText(character row vector). Text cells also carryStylewith the Live Editor paragraph style ("text","title","heading", …).MetadataA struct with character fields
MATLABRelease,MATLABVersion,Title,CreatedandModified.
Name-value arguments:
"IncludeCode"(defaulttrue)When
false, code cells keepTypebut omit theCodefield."IncludeText"(defaulttrue)When
false, text cells keepType/Stylebut omit theTextfield.
Behaviour note: MATLAB R2026a does not ship a public
mlxreadM-file or builtin. This Nexus API is a clean-room reader for the documented OPC .mlx layout, sized so latermlxwrite/mlx2mtasks can share the same cell struct.