Effacer les filtres
Effacer les filtres

Calling a Simulink-Modell by Button Click

2 vues (au cours des 30 derniers jours)
Jay Samin
Jay Samin le 11 Août 2016
Commenté : Jay Samin le 12 Août 2016
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

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 12 Août 2016
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 commentaire
Jay Samin
Jay Samin le 12 Août 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by