Error with the SIR Model

3 visualizzazioni (ultimi 30 giorni)
Mohammed El Mansouri
Mohammed El Mansouri il 23 Mag 2022
Risposto: Alan Stevens il 28 Mag 2022
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:

Risposte (1)

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

Categorie

Scopri di più su View and Analyze Simulation Results in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by