From the series: MATLAB and Simulink Basics
Christoph Hahn, MathWorks
Lars Schatkowski, MathWorks
MATLAB® live scripts are interactive documents that combine MATLAB code, inline output, formatted text, equations, and images in a single environment called the Live Editor.
Christoph Hahn and Lars Schatkowski, both former members of Formula Student teams, guide you through the new features of live scripts and demonstrate the functionalities of the Live Editor as they point out how using live scripts can benefit your Formula Student team.
Have you ever wished to have more formatting options in MATLAB for your explanations, beyond using green-colored comments in ASCII? The text formatting options in live scripts follow the idea of word processing tools. This includes an equation editor and LaTeX support. The option to embed figures is helpful when explaining complicated context.
Live scripts can also help you keep of track multiple plots by showing outputs inline, just under the command or next to your code, displaying the relation.
Users of Symbolic Math Toolbox™ also benefit from the Live Editor as the output of symbolic math equations is now more readable, which makes checking their correctness much easier.
To debug your live script, three options are currently available. You can debug visually using the Live Editor, programmatically using the command line debugger, or save your live script as an m-file and work with breakpoints.