Software Open Access
A generalized SEIR model with seven states  is numerically implemented in Matlab. The implementation is done from scratch except for the fitting, that relies on the function "lsqcurvfit".
The present submission includes several majors difference with respect to ref. . Among them is the expression of the death rate and recovery rate, which are analytical and empirical functions of the time. The idea behind this time-dependency as that the death and recovery rate should converge toward a constant value as the time increases. If the death rate is kept constant, the number of death may be overestimated. Births and natural death are not modelled here. This means that the total population, including the number of deceased cases, is kept constant. Note that ref.  is a preprint that is not peer-reviewed and I am not qualified enough to judge the quality of the paper.
The present submission contains:
A function SEIQRDP.m that is used to simulate the time histories of the infectious, recovered and dead cases (among others)
A function fit_SEIQRDP.m that estimates the eight parameters used in SEIQRDP.m in the least square sense.
One example file Documentation.mlx, which presents the numerical implementation.
One example file Example_province_region.mlx, which uses data collected by the Johns Hopkins University for the COVID-19 epidemy  for Hubei province (China).
One example file Example_Country.mlx, which uses data collected by the Johns Hopkins University for the COVID-19 epidemy  for a coutnry.
One file "ItalianRegions.mlx" written by Matteo Secli (https://github.com/matteosecli) that I have modified for a slightly more robust fitting.
One file "FrenchRegions.mlx", which gives another example for Data collected in France. The data quality is not as good as expected, so the fitting is unlikely to provide reliable parameter estimates.
One example file ChineseProvinces.mlx, which illustrates how the function fit_SEIQRDP.m is used in a for loop to be fitted to the data  from the different Chinese provinces.
One example "uncertaintiesIssues.mlx", which illustrates the danger of fitting limited data sets.
One example "Example_US_cities.mlx" that illustrates the fitting when "recovered" data are not available.
One example simulateMultipleWaves,mlx that illustrates the fitting for multiple epidemic waves.
One function getDataCOVID, which read from  the data collected by Johns Hopkins University.
One function getDataCOVID_ITA written by Matteo Secli (https://github.com/matteosecli), that collects the updated data of the COVID-19 pandemic in Italy from the Italian government 
One function getDataCOVID_FRA that collects the updated data in France from 
One function getDataCOVID_US that collects the updated data in the USA from 
One function checkRates.m that plots the fitted and computed death and recovery rates (quality check)
One function getMultipleWaves.m that simulate and fit the SEIRQDP model to the situations where multiple epidemic waves are detected.
Any question, comment or suggestion is welcome.
 Peng, L., Yang, W., Zhang, D., Zhuge, C., & Hong, L. (2020). Epidemic analysis of COVID-19 in China by dynamical modeling. arXiv preprint arXiv:2002.06563.