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?

回答(1 个)

You can use interpreted matlab function block or matlab function block

2 个评论

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.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink Functions 的更多信息

产品

提问:

2013-7-11

Community Treasure Hunt

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

Start Hunting!

Translated by