Simulate recursive function in simulink
28 次查看(过去 30 天)
显示 更早的评论
I want to solve the point kinetic equations in simulink as given below
where rho, beta, lamda are all constants. I need to know the method of simulating recursive functions in simulink
4 个评论
Walter Roberson
2024-9-20
I do not believe that Simulink can handle recursion, except that a MATLAB Function Block can potentially be coded recursively.
回答(1 个)
Aquatris
2024-9-20
I did not care about the dimensions at all while creating the simulink model so some adjustment might be necessary but this is one way to do it. Keep in mind you can represent [ sum of lamda_i * c_i ] as a matrix multiplication , i.e.,
2 个评论
Aquatris
2024-9-23
It is possible with the Simulink model I shared. 6 equation means you will be doing matrix algebra, that is about the only difference in implementation between a single state model and multi-state model.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Naming Conventions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!