How to Use Live Editor Controls
Learn about using MATLAB® live editor controls. Explore how to dynamically change outputs in real time, and create and share live scripts.
This video covers:
- An overview of each type of control
- How to integrate them into a script
- The importance of labeling controls in a script
- Hidden code
- Examples for further practice
Live editor controls include the numeric slider, the drop-down menu, the checkbox, the edit field, and the button.
When put into a live script, these controls show how changing variables in your code affects corresponding outputs in real time. Labeling live editor controls is quick and easy, and the menu for labeling also lets you change the settings of the control.
The video also walks through how and why to hide code. When the actual live script code is hidden from view, only the script’s outputs are visible, in addition to any live editor controls in the script. This allows users to dynamically change the outputs of the script by changing variable values. Live editor controls not only make it easier to create and edit a script, but they also make sharing code much more efficient and user friendly. The script author can keep all the details out of the code they share, so the user can just interact with the outputs and controls.
To learn more, see MATLAB documentation and explore interactive examples.
Featured Product
MATLAB
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)