Error with the SIR Model

4 次查看(过去 30 天)
Mohammed El Mansouri
Hello, I am trying to simulate the SIR Model considering N=S+I+R. I get the following errors, concerning the plot, where a variable is not being plotted. Is there anyone who can help me? Thank you
This is the sirn_model_definition file where I declared and defined my parameters:
This is the sirn_model file where I defined the function:

回答(1 个)

Alan Stevens
Alan Stevens 2022-5-28
  1. Update N at each timestep.
  2. Plot I and R on a different scale from S.

类别

Help CenterFile Exchange 中查找有关 View and Analyze Simulation Results 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by