SIR model

The basic SIR model


Updated 19 Jun 2023

View License

This is the basic SIR model for COVID 19 where
  • Susceptible (S): This group comprises individuals who are susceptible to contracting the infectious disease. They have not been infected before and can become infected if they come into contact with infectious individuals.
  • Infectious (I): This group contains individuals who are currently infected and can transmit the disease the susceptible individuals.
  • Recovered (R): This group contains individuals who have recovered from the infection and may developed immunity to the disease, providing them the protection from reinfection
  • β: Infection rate
  • γ: Recovery Rate
  • N: Total population = S + I + R

Cite As

Quang Duc Huy (2023). SIR model (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes