Continuous input from Workspace to Simulink model

I have a MATLAB function which continuously updates a set of variables, which I need to use as input for a Simulink model. I would like Simulink to update the value as soon as fur function generates a new one.
Does Simulink provide a block for this or do I have to write a S-function?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 11 de Jul. de 2013

1 voto

You can use interpreted matlab function block or matlab function block

2 comentarios

Jenifer
Jenifer el 11 de Jul. de 2013
As my function is based on a custom Matlab library, it is not straightforward to implement it as a Matlab Function Block. That's why I would like to use an existing Simulink block.
What do you mean?

Iniciar sesión para comentar.

Categorías

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

Productos

Preguntada:

el 11 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by