Error with the SIR Model

조회 수: 8 (최근 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 CenterFile Exchange에서 Converters (High Power)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by