What Is a Live Script or Function?
MATLAB® live scripts and live functions are interactive documents that combine MATLAB code with formatted text, equations, and images in a single environment called the Live Editor. In addition, live scripts store and display output alongside the code that creates it.
Differences Between Scripts and Live Scripts
Live scripts and live functions differ from scripts and functions in several ways. This table summarizes the main differences.
Live Scripts and Functions | Plain Code Scripts and Functions | |
---|---|---|
File Formats |
| Plain text |
File Extensions |
| .m |
Output Display | With code in the Live Editor (live scripts only) | In Command Window |
Text Formatting | Add and view formatted text in the Live Editor | Use publishing markup to add formatted text, publish to view |
Visual Representation |
|
|
Limitations
Before R2019b, the Live Editor is not supported in several operating systems supported by MATLAB.
Unsupported operating systems include:
Red Hat Enterprise Linux 6.
Red Hat Enterprise Linux 7.
SUSE Linux Enterprise Desktop versions 13.0 and earlier.
Debian 7.6 and earlier.
In addition, some operating systems require additional configuration to run the Live Editor in MATLAB versions R2016a through R2019a. If you are unable to run the Live Editor on your system, Contact Technical Support for information on how to configure your system.