Change gain while running the simulation

Hi everyone,
I would like to perform some calculations during the simulation in a Matlab Function with Simulink. It will be neccessary to update the gain with a matrix, calculated in this Matlab Function. This way I want to create an adaptive control.
Is it possible to update the gain from a function inside the model? I haven't found a solution yet. :(

回答(1 个)

Replace the gain block with a product block.

类别

帮助中心File Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

产品

提问:

2014-10-23

回答:

2014-10-23

Community Treasure Hunt

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

Start Hunting!

Translated by