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?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block Libraries 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!