Main Content

Live Scripts and Functions

Program files that can include formatted text, images, and output to explain the code

Live scripts and live functions are program files useful for interacting with a series of MATLAB® commands. Live scripts contain output and graphics with the code that produced them, together in a single interactive environment called the Live Editor. Live functions provide additional flexibility, allowing you to pass input values and return output values. You can add formatted text, images, hyperlinks, and equations to live scripts and functions to produce an interactive narrative that can be shared with others.

For more information about live scripts and functions, including incompatibilities and information about the Live Code file format, see What Is a Live Script or Function?.

To explore existing live scripts from the MATLAB community, see the MATLAB Live Script Gallery.

Example live scripts

Fonctions

exportConvert live script or function to standard format

Rubriques