Effacer les filtres
Effacer les filtres

How do I run an "example.m" file in Simulink?

2 vues (au cours des 30 derniers jours)
ak
ak le 4 Fév 2021
Modifié(e) : Jonas le 9 Fév 2021
My MATLAB code is written in example.m. Now, how do I run this example.m file in Simulink?

Réponses (1)

Jonas
Jonas le 5 Fév 2021
Modifié(e) : Jonas le 5 Fév 2021
In the MATLAB workspace type and enter:
>> example
Or, go to the editor and click the green play button 'Run'.
Or press the 'F5' button when inside the editor.
Or in the MATLAB file explorer, right click the file and select 'Run'.
Or in the MATLAB file explorer, right click the file and press 'F9'.
  2 commentaires
ak
ak le 9 Fév 2021
I want to run/call (example.m ) file in simulink project/file.
Jonas
Jonas le 9 Fév 2021
Modifié(e) : Jonas le 9 Fév 2021
Use the MATLAB function block and copy your code inside of it.

Connectez-vous pour commenter.

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by