简体   繁体   English

如何在 MATLAB 中找到离散 SIR model 的数值解?

[英]How can I find numerical solutions of discrete SIR model in MATLAB?

I was looking to simulate the discrete sir model in MATLAB and also to find stability and bifurcation graph.我正在寻找模拟 MATLAB 中的离散先生 model 并找到稳定性和分岔图。 can anyone help me solve these problems?谁能帮我解决这些问题?

A great source for Matlab scripts is the Mathworks file exchange. Matlab 脚本的一个重要来源是 Mathworks 文件交换。 A search for the SIR model found:搜索 SIR model 发现:

https://www.mathworks.com/matlabcentral/fileexchange/75100-sir-epidemic-spread-model?s_tid=srchtitle https://www.mathworks.com/matlabcentral/fileexchange/75100-sir-epidemic-spread-model?s_tid=srchtitle

This should have what you're looking for (unfortunately don't have Matlab on this computer to check).这应该有你要找的东西(不幸的是,这台电脑上没有 Matlab 可以检查)。

For the discrete sir equations a for loop as described in:对于离散 sir 方程,for 循环如下所述:

https://www.mathworks.com/matlabcentral/answers/325773-solving-difference-equation-with-its-initial-conditions https://www.mathworks.com/matlabcentral/answers/325773-solving-difference-equation-with-its-initial-conditions

should be able to solve your system for fixed parameters.应该能够解决您的系统的固定参数。 You're going have to do a bit of work to get the bifurcation diagram and stability.您将不得不做一些工作来获得分岔图和稳定性。 This answer:这个答案:

Generate bifurcation diagram for 2D system 生成二维系统的分岔图

should get you going.应该让你去。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MATLAB中离散SIR model的分岔图 - Bifurcation diagram of discrete SIR model in MATLAB 在Matlab和Simulink中建模SIR模型 - Modeling SIR model in matlab and simulink MATLAB-SIR流行病模型的优化 - MATLAB - Optimization of SIR epidemic model 如何在Matlab中创建左移离散时间信号 - How can I create left shifted discrete time signal in Matlab 在MATLAB中,如何进行样本离散分布? - In MATLAB, how can I do the sample discrete distribution? 如何在MATLAB中获得该方程式的所有解? - How can I get all solutions to this equation in MATLAB? 如何在Matlab中将单元格数组转换为数值数组? - How can I convert a cell array to numerical array in Matlab? 如何在Matlab中对离散输入信号执行数值Laplace和拉普拉斯逆变换? - How to perform a numerical Laplace and inverse Laplace transforms in Matlab for a discrete input signal? 我正在尝试使用 matlab 中的数值分析方法找到根,但我遇到了这些错误并且无法弄清楚。 我该如何解决? - I'm trying to find root with a numerical analysis method in matlab but I'm getting these errors and can't figure it out. How can I solve? 在使用MATLAB将傅立叶级数拟合到离散数据之前,如何定义周期? - How can I define the period before fitting a Fourier series to discrete data using MATLAB?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM