how to call m-file from simulink?

2 vues (au cours des 30 derniers jours)
shivakumar
shivakumar le 22 Avr 2013
Modifié(e) : John Kelly le 27 Mai 2014
I have some conversions to do with the inputs, i want to do this in m-file. so, how can i call m-file from simulink ? i.e. i want m-file also to execute when i run the model in simulink.

Réponse acceptée

Tobias
Tobias le 22 Avr 2013
Modifié(e) : John Kelly le 27 Mai 2014
There are different ways you can do this. The most simple, but limited is probably Fcn. However, for your purpose, it sounds like you would be better off with either using Interpreted Matlab Function or even better: Matlab Function, which enables you to make your own function and use it in simulink.
  1 commentaire
shivakumar
shivakumar le 22 Avr 2013
thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by