MATLAB Live Editor
Visually explore and analyze problems in a single, interactive environment, and turn your code into formatted, executable documents that tell your story.
Accelerate Exploratory Programming
Work in a single environment and eliminate context switching; results and visualizations appear right next to the code that produced them. Divide your script into manageable sections, and run each independently. MATLAB helps you code with contextual hints for arguments, file names, and more. You can use interactive tools to explore figures and add formatting and annotations.
Try it: Can you find the type of weather event that occurs most often in the data?
Turn Your Code into an Interactive Document
Enhance your code and output with formatting, images, and hyperlinks to turn your live script into a story. Insert equations using the interactive editor or create them using LaTeX. Add interactive controls to set values in your script. You can then share your live scripts directly with colleagues so they can reproduce or expand on your work, or create static PDF, HTML, and LaTeX documents for publication .
Try it: Can you calculate sunrise and sunset times for your location?
Create Live Functions
Create and debug live functions and scripts. Add formatted documentation to your functions.
Try it: Can you use the debugger to explore the execution of the
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.
Try it: Can you find the definite integral of sin2(x) cos2(x) for the interval [0, 2π]?
Get started today by reviewing the examples below.
- Using the Live Editor (4:35) (Video)
- Introduction to the Live Editor
- Use the Live Editor to Accelerate Exploratory Programming
- Create an Interactive Narrative with the Live Editor
- Teach with Live Scripts
- MATLAB Live Editor: A Scientific Computing Playground for Students (10:28) (Video)
- Find community-authored live scripts on MATLAB Central File Exchange