fitVirusCOVID19
Estimation of coronavirus COVID-19 epidemic evaluation by the SIR model
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Cite As
milan batista (2026). fitVirusCOVID19 (https://www.mathworks.com/matlabcentral/fileexchange/74658-fitviruscovid19), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Class Covid, fitVirusCV19varW (Variable weight fitting of SIR Model)
General Information
- Version 5.2.1 (8.36 MB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 5.2.1 | Minor changes |
||
| 5.2.0 | Add function fitVirusCV19R which treats the daily case as newly removed cases and not newly infected cases. |
||
| 5.1.0 | Add 'tick' option to control x-axis ticks and 'data' option to display all data (see readMe.m for usage). Correct Daily New Cases shift to +1 day (thanks to Burak). Change analysisCV19: now the number of days is days back from the current date. |
||
| 5.0.3 | Update description. Change recovered with removed. |
||
| 5.0.2 | Minor corrections. Add statistics of daily new cases. |
||
| 5.0.1 | Add parameters plot to analyseCV19. Add importTotalCasesR15 for those who only have MATLAB R2015a (thanks to Sherwood Samn) |
||
| 5.0.0 | Correct NaN cases. Change plot range. Add calculation of epidemic end (5 cases left) |
||
| 4.3.6 | Correct report |
||
| 4.3.5 | Trim data for some countries (India, Indonesia, Argentina, Croatia) |
||
| 4.3.4 | Trim data for some countries |
||
| 4.3.3 | Minor corrections. |
||
| 4.3.2 | Change image |
||
| 4.3.1 | The update suggested by Yusuf Kursat Tuncel to display correct date and value. Add version fitVirusCOVID19cs which change graph x axis to datetime values (thanks to Christian Schiffer). |
||
| 4.2.1 | Update description |
||
| 4.2.0 | Add function impoertTotalCases that automating the download of the data
|
||
| 4.1.4 | Update data. Add R0 > 1 (basic rep. number) and R <= R0 (rep. number) to title and analyze function. |
||
| 4.1.3 | update of USA data in PLA folder ( by Patrick Anderson). Minor corrections. |
||
| 4.1.2 | Minor corrections |
||
| 4.1.1 | Correct fitVirusCV19 to support calcR0. Update data for Japan. |
||
| 4.1.0 | Add an optional graph of growth rate. Update data (4.4.2020) |
||
| 4.0.9 | Update description |
||
| 4.0.8 | Minor corrections |
||
| 4.0.7 | Update data. Change graph text: now its contains contact number, contact time and infectious time. Add function to calculate R0. |
||
| 4.0.6 | Change image |
||
| 4.0.5 | update regression algorithm. By default, the solution with min N is selected (optimistic approach). Add Iceland and Sweden. Update data (2.4.2020) |
||
| 4.0.4 | Change image |
||
| 4.0.3 | More minor changes |
||
| 4.0.2 | Minor corrections |
||
| 4.0.1 | Add the check data folder (thanks to Rolf Boelens). Add two utility programs in folder PLA (thanks to Patrick Anderson) |
||
| 4.0.0 | Major revision. Add flambertw for those who have no SMTbx. Add importData function. |
||
| 3.0.6 | Update description |
||
| 3.0.5 | Update description |
||
| 3.0.4 | Update description |
||
| 3.0.3 | Update analyseCV19 |
||
| 3.0.2 | More minor corrections |
||
| 3.0.1 | Minor corrections |
||
| 3.0.0 | Add analyseCV19. Update data, add Czech Republic, Japan, Slovakia |
||
| 2.0.5 | Change image with today predictions in Lombardia |
||
| 2.0.4 | Improve initial data trim. Add data for Brazil, India, and Poland. |
||
| 2.0.3 | Correct description |
||
| 2.0.2 | Add address of data source |
||
| 2.0.1 | Add data for Canada (thanks to Remy Boisse) , Indonesia (thanks to Maldiku Servinu) and Serbia. Upgrade description. |
||
| 1.0.14 | Update description |
||
| 1.0.13 | Update description |
||
| 1.0.12 | Update data. Add Hungary and NY State |
||
| 1.0.11 | Correct data |
||
| 1.0.10 | Add new data |
||
| 1.0.9 | Add data for NYState. Add the option for controlling the number of iterations. |
||
| 1.0.8 | Add data for Denmark and Norway. Data are now automatically trimmed. Weights are now selected automatically. Minor corrections. |
||
| 1.0.7 | Delete duplicate examples |
||
| 1.0.6 | Minor corrections. Add data for Croatia and UK |
||
| 1.0.5 | Correct graphs |
||
| 1.0.4 | Minor corrections |
||
| 1.0.3 | Correct description |
||
| 1.0.2 | Improve print and initial guess function. Add data for Lombardia. |
||
| 1.0.1 | edit description |
||
| 1.0.0 |