image thumbnail


version 1.0.4 (864 KB) by Francisco de Castro
Fits a SEIR epidemic model to data and simulates the course of the epidemic.


Updated Wed, 01 Jul 2020 19:43:27 +0000

View License

This set of functions is designed to fit a SEIR epidemic model to data and simulate the course of the epidemic. It includes the possibility of time-dependent transmission and mortality rates. For a full description of the model see:
Originally, the functions were designed for the covid-19 pandemic of 2020 in a per country basis. However, nothing prevents them to work with other data. The model assumes permanent immunity after recovery. There is no age or spatial structure.
It includes a help in PDF.

Cite As

Francisco de Castro (2022). fitSEIR (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!