how to call m-file from simulink?

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.

 Respuesta aceptada

Tobias
Tobias el 22 de Abr. de 2013
Editada: John Kelly el 27 de Mayo de 2014

2 votos

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.

Más respuestas (0)

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Abr. de 2013

Editada:

el 27 de Mayo de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by