.MLX File Extension

MATLAB Live Code File

Developer The MathWorks
3.7  |  21 Votes

What is an MLX file?

An MLX file contains a live script or function in the MATLAB Live Code format, which includes MATLAB code, embedded output, equations, images, and formatted text. The MathWorks MATLAB, an application for mathematical computations and data analysis, creates and opens MLX files. MATLAB users save live scripts and functions as MLX files to create interactive documents by combining commands and their output with graphics and formatted text.

More Information

MATLAB provides many tools to analyze data, develop algorithms, create models, build apps, and more. One feature is Live Code, which allows users, such as engineers and scientists, to build interactive documents, such as graphs for visualizing fluid temperature data throughout a day, or a tool for calculating heart rate from electrocardiogram data.

Additionally, The MathWorks introduced MLX files to extend .M source code files. Some of their differences:

  • MLX files are saved in the Live Code format, an extension of the Zip format that stores content in separate .XML files. M files store plain text.
  • MLX files are interoperable across different locales, whereas characters in M files are not compatible across all locales.
  • MLX files are backward and forward compatible.

How to create an MLX file with MATLAB

To create an MLX file:

  1. Select New in the "EDITOR" tab.
  2. Choose the type of file ("Live Script," "Live Function," etc.).
  3. Select Save → Save As....
  4. Name the file and choose the save location.
  5. Select Save.

How to open an MLX file

You can open an MLX file with The MathWorks MATLAB (multiplatform). To open an MLX file, select Open from the "HOME" or "EDITOR" tabs, choose the MLX file, then select Open.

How to convert an MLX file

MATLAB can convert an MLX file to an M source code file. To do this, select File → Save → Save As... in the "EDITOR" tab. Then, select "MATLAB Code files (*.m)" as the "Save as type".

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open MLX files


Verified by FileInfo.com

The FileInfo.com team has independently researched the MATLAB Live Code file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.