Calling a Simulink-Modell by Button Click

Hi everyone,
i programmed a Gui in Matlab and i would like to call a Simulink-Model through button click. has someone an idea how I can do it ?
I appreciate any help Jay

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 12 de Ag. de 2016

0 votos

What do you mean "call a Simulink-Model", open it and run simulation? You can put some code similar to below in the callback function of your button click.
open_system('ModelName'); sim('ModelName');
For info on other Simulink related functions, type "help simulink"

1 comentario

Jay Samin
Jay Samin el 12 de Ag. de 2016
Hallo Fangjun,
sorry because i didn't express my problem clearly, I want to call the model and its necessary M-files but i don´t want to simulate it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 11 de Ag. de 2016

Comentada:

el 12 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by