Nested function, graphical user interface (GUI) and GUIDE tool
This is an example from new book "MATLAB and Simulink" by Bogumila and Zbigniew Mrozek. A problem was how to provide additional parameter "beta" to ODE23 solver, as it uses user supplied function xdot=mech_ode(t,x) with two input parameters.
In "oscillator.m" , a nested functions was used to provide actual value of "beta" parameter into function xdot=mech_ode(t,x). Global variables are not used here.
See also: "APP based on nested function, graphical user interface (GUI)
and GUIDE tool" by Zbigniew MROZEK. It is an example showing how to use this example to prepare an APP (MATLAB application) using MATLAB 2012a or higher.
Citar como
Bogumila & Zbigniew MROZEK (2026). Nested function, graphical user interface (GUI) and GUIDE tool (https://es.mathworks.com/matlabcentral/fileexchange/25242-nested-function-graphical-user-interface-gui-and-guide-tool), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Agradecimientos
Inspiración para: APP for interactive diagrams of oscilator. Nested function and GUI is used
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.8.0.0 | Information that this contribution was used to prepare new submission "APP based on nested function, graphical user interface (GUI) and GUIDE tool" to the File Exchange |
||
| 1.7.0.0 | Description was improved |
||
| 1.1.0.0 | minor changes in Summary and Description |
||
| 1.0.0.0 |
