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
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)