MATLAB Live Editor
Create scripts that combine code, output, and formatted text in an executable notebook.
Create scripts that combine code, output, and formatted text in 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™.
Try it: Can you find the exoplanet furthest from the earth?
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™.
Try it: Can you calculate sunrise and sunset times for your location?
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.
Try it: Can you find the type of weather event that occurs most often in the data?
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.
Try it: Can you calculate the heart rate from the ECG signal?
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 following videos and examples.
Visit the MATLAB live script gallery to open and run community-authored examples.