MATLAB Live Editor

Create scripts that combine code, output, and formatted text in an executable notebook.

Create an Executable Notebook

Create scripts that combine code, output, and formatted text. Divide code into manageable sections that can be run independently. View output and visualizations next to the code that produced them. Enhance your code and results with formatted text, headings, images, and hyperlinks. Insert equations using the interactive editor or create them using LaTeX. Save code, results, and formatted text in a single executable document.

You can use the Live Editor in MATLAB® and in MATLAB Online™.

Share Your Work

Add interactive controls to allow others to experiment with parameters in your code. Hide your code to create simple applications and dashboards. Publish live scripts as HTML, PDF, LaTeX, or Microsoft Word. Create documentation for live functions with formatted text, images, hyperlinks, and equations. Share your work through MATLAB Online and MATLAB Drive™.

Get to Your Results More Quickly

MATLAB helps you code with contextual hints for function arguments, file names, and more. Use interactive tools to explore figures and tables in the output. Then get automatically generated code to reproduce your changes. Select blocks of code to create reusable functions. Use the fully integrated debugger to troubleshoot your code.

Get to Your Results More Quickly

Complete Steps Interactively

Use Tasks in the Live Editor to complete steps in your analysis. Interactively explore parameters and options and immediately see the results. Generate code in the script for the completed task and preview. Save a Live Editor Task as part of the live script for sharing or subsequent use.

Teach with Live Scripts

Create engaging lectures that combine explanatory text, mathematical equations, code, and results. Step through topics one section at a time and modify your code on the fly to demonstrate concepts. Develop examples that illustrate how engineers use math to solve practical and complex problems. Create live scripts with MATLAB code to build assignments that let students explore and learn on their own.

Teach with Live Scripts

Learn More