Error with the SIR Model

9 ビュー (過去 30 日間)
Mohammed El Mansouri
Mohammed El Mansouri 2022 年 5 月 23 日
回答済み: Alan Stevens 2022 年 5 月 28 日
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 件のコメント
Sam Chak
Sam Chak 2022 年 5 月 28 日
Unable to debug images of codes.

サインインしてコメントする。

回答 (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 Center および File ExchangeConverters (High Power) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by