Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Problem regarding Simulink model & GUI interfacing

1 visualización (últimos 30 días)
S. Gopal
S. Gopal el 29 de Mzo. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
How can I interface a Simulink model to a GUI in MATLAB 2010a. I am using 'sim()' in command window & I am getting the result, but when I paste the same command inside a callback function of a push-button in GUI. There is no response. What should I do? Thank You.

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Mzo. de 2016
When sim() is called inside a function, the results are saved into the workspace of the function, and will disappear when the function returns. When sim() is called from the command line or from the menus, then the results are saved into the base workspace, where they will stay until cleared or overwritten.

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by