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 (https://www.mathworks.com/matlabcentral/fileexchange/131349-sir-model), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: SIR Math Model of Virus Spread (Coronavirus or other)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |