Live-Skripte und -Funktionen
R2026bLive-Skripte und Live-Funktionen sind Programmdateien, die für die Interaktion mit einer Reihe von MATLAB®-Befehlen sinnvoll sind. Live-Skripte beinhalten Ausgaben und Grafiken zusammen mit dem Code, mit dem diese erstellt wurden, in einer einzigen interaktiven Umgebung, dem sogenannten Live-Editor. Live-Funktionen gewährleisten zusätzliche Flexibilität und ermöglichen Ihnen, Eingabewerte zu übertragen und Ausgabewerte zurückzusenden. Sie können formatierten Text, Bilder, Hyperlinks und Gleichungen zu Live-Skripten und -Funktionen hinzufügen, um ein interaktives Narrativ zu erstellen, das mit anderen geteilt werden kann. Informationen zum Einstieg finden Sie unter Create Live Scripts.
Funktionen
export | Convert live script or live function to standard format (Seit R2022a) |
Themen
- Create Live Scripts
Create live scripts with formatted text, images, videos, hyperlinks, and equations, and view the generated output and graphics with the code that produced them.
- Live Code File Formats
Learn how live scripts are saved as plain text (
.m) or binary (.mlx) files, including their structure, behavior, and typical usage. - Create and Run Sections in Code
Divide MATLAB code files into sections and run all sections or run each section individually.
- Create Live Functions
Create live functions with formatted text, images, and equations.
- Add Help for Live Functions
Add help text to live functions that displays when you use the
helpanddocfunctions. - Add Interactive Controls to Live Scripts
Add sliders, spinners, drop-down lists, check boxes, edit fields, buttons, file browsers, color pickers, and date pickers to live scripts to control variable values interactively.
- Add Interactive Tasks to Live Scripts
Add tasks to live scripts to explore parameters interactively and generate code.
- Ways to Share and Export Live Scripts and Functions
Share live scripts and functions with other MATLAB users, or export them as PDF files, Microsoft® Word documents, HTML files, LaTeX files, Markdown files, or Jupyter® notebooks for viewing outside of MATLAB.
- Compare and Merge Live Scripts and Functions
View and merge changes between two live scripts or functions.
- Editor Keyboard Shortcuts
You can use several keyboard shortcuts to facilitate working with the Editor.
- Editor/Debugger Settings
Use Editor/Debugger settings to customize the Editor.







