How to compute data in simulink in an iteration save or update some variables and use in computation of next iteration?

8 次查看(过去 30 天)
I have built a rubber spring model in simulink. During every iteration I need to use the outputs of the previous iteration,some variables (a,b) and compute new output values. say output(i)=fn(output,a,b) The values of variables (a,b) are also updated,so to be used for next iteration. say a=fn(output),b=fn(output)
How must I proceed?

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2013-9-23
You can use the Unit Delay block to get the previous output value.

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by