Recursive modeling in Simulink
Show older comments
I am learning Simulink. I've done around 50% of the onramp course so I tried modeling something on my own.
One of the reasons I wanted to learn simulink is to model population models so that's what I started with. The problem is, however that it's a recursive model and I don't know how to make this work in simulink...
The below is what I tried:

5 Comments
Sam Chak
on 18 Mar 2024
The model appears to resemble an algebraic loop since I cannot identify any dynamic time-components. Isn't it typical for a population model to exhibit growth or decline over time until it reaches an equilibrium, where the number of births equals the number of deaths?
Yannick Ongena
on 18 Mar 2024
Sam Chak
on 18 Mar 2024
I'm not certain if the remaining 50% of the Simulink Onramp course will cover it, but I believe that modeling differential equations using the recursive formula in Simulink might be a bit too advanced. To my knowledge, there isn't a specific Simulink block available for performing the user-defined recursive formula.
Yannick Ongena
on 18 Mar 2024
Yannick Ongena
on 24 Mar 2024
Accepted Answer
More Answers (1)
Yannick Ongena
on 18 Mar 2024
0 votes
2 Comments
Sam Chak
on 18 Mar 2024
By the way, is your population model continuous or discrete? For instance, if the current population count is 34, it wouldn't make sense to have 3.4 births (where 0.4 represents half-alive individuals) or 6.8 deaths (where 0.8 indicates individuals on the brink of death), correct?
Yannick Ongena
on 18 Mar 2024
Edited: Yannick Ongena
on 18 Mar 2024
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
