Open MLX files in your browser

MATLAB's notebooks: code, its results and the words around it in one file. Open an MLX right here with every output it saved, no MATLAB needed. Nothing leaves your device.

Or drop it anywhere on this page

What you'll see

Your live script opens as MATLAB's Live Editor shows it, with the outputs it saved and nothing in it running.

draining_tank.mlx

Live Script • MATLAB R2024b • 4 sections • 4 outputs

  • Text, headings and equations • Code in MATLAB's colors
  • Figures, text and variables • Under the code that made them
  • Live Script, Tree or Text
  • Export • Save as an .m script, as HTML or as PDF

About MLX

MATLAB's Live Editor came with MATLAB R2016a, and a live script is what it saves: text, equations and pictures between the code, with each result under the line that made it. Courses hand out homework as live scripts, labs keep their analyses in them, and many of MathWorks' own examples open as .mlx files.

An MLX is a ZIP in Office's Open Packaging, like a .docx: the document in XML, its paragraphs of text, headings, code and equations in LaTeX, and beside it the outputs MATLAB saved on the last run, figures as PNG, printed text and variables, each tied to its lines of code. Only MATLAB, MATLAB Online and MATLAB Mobile open it, all with a MathWorks account.

Filepeek reads the package in your browser and draws it as the Live Editor shows it, with nothing in it running: the text and headings, the equations, the code in MATLAB's colors, and under it the figures, text and variables as they were saved. Export saves the code as an .m script with the text as comments, as MATLAB's own Save as does, or the whole script as HTML or PDF.

MATLAB live script

Format

MIME type
application/octet-stream
Made by
MathWorks
Released
2016

Inside the file

Holds
Text, equations, code and outputs
Outputs
Figures as PNG, text and variables
Container
ZIP, as Office's packages
Since
MATLAB R2016a

Opens in every browser

Filepeek opens live scripts in Chrome, Edge, Firefox and Safari, with no MATLAB to install. On their own, browsers download them, and MATLAB needs a licence.

  • YouChromeOpens through Filepeek
  • YouEdgeOpens through Filepeek
  • YouFirefoxOpens through Filepeek
  • YouSafariOpens through Filepeek

Apps that open MLX

  • WindowsMATLAB's Live Editor • MATLAB Online in a browser
  • MacMATLAB's Live Editor • MATLAB Online in a browser
  • iPhone and iPadMATLAB Mobile, signed in to MathWorks
  • AndroidMATLAB Mobile, signed in to MathWorks

Questions

How do I open an .mlx file without MATLAB?

Drop it on this page or choose Peek an MLX. It opens as the Live Editor shows it, with the outputs it saved on its last run.

Does the code run?

No. Nothing in the script runs, so it shows what MATLAB showed when the script was last run and saved.

Why does my live script show no outputs?

MATLAB keeps a script's outputs only when it was run before it was saved, and Clear All Output takes them out. Filepeek shows what the file holds, so a script saved without them shows its text and code.

How do I turn an .mlx into an .m file?

Open it, choose Export, then Save as MATLAB script. The code comes in order with the text as comments, as MATLAB's own Save as MATLAB code file does.

More scientific formats

All supported file types

Opens in a new tab

EXIF

Verify

License

Signature