Mathematics, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana.
Department of Mathematics and Applied Mathematics, University of Johannesburg, Johannesburg 2006, South Africa.
F1000Res. 2023 Sep 25;12:445. doi: 10.12688/f1000research.130458.2. eCollection 2023.
This paper presents a newly developed Matlab code for the numerical simulation of compartmental/deterministic models. It addresses modeling and simulation issues concerning compartmental models. The code is easy to understand and edit for the simulation of compartmental models. An alternative codes for statistical software package R has been proposed for the same model. R software is freely available for use. We proposed a basic SEIR model for illustration purposes. Matlab and R software codes are developed for the SEIR model which users can follow and easily understand the computations. The two codes work on all Matlab and R versions. For models with more compartments, we suggest using higher version of Matlab and R. Matlab works on windows, Mac and Linux New Matlab software codes purposely for numerical simulations of classical deterministic models which can run on any version of Matlab has been introduced in this paper. This code can be edited/modify to suit any deterministic models and any desired output required. An alternative open source free version has been written in R has been provided as well.
本文提出了一个新开发的 Matlab 代码,用于房室/确定性模型的数值模拟。它解决了与房室模型有关的建模和模拟问题。该代码易于理解和编辑,可用于房室模型的模拟。对于相同的模型,还提出了一个用于统计软件包 R 的替代代码。R 软件可免费使用。我们提出了一个基本的 SEIR 模型来说明问题。为 SEIR 模型开发了 Matlab 和 R 软件代码,用户可以遵循并轻松理解计算过程。这两个代码适用于所有的 Matlab 和 R 版本。对于具有更多隔室的模型,我们建议使用更高版本的 Matlab 和 R。Matlab 适用于 Windows、Mac 和 Linux。本文介绍了一种专门用于经典确定性模型数值模拟的新的 Matlab 软件代码,它可以在任何版本的 Matlab 上运行。该代码可以编辑/修改以适应任何确定性模型和所需的任何输出。还提供了一个在 R 中编写的替代开源免费版本。