Jump to content

File:Sirsys-p9.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Sirsys-p9.png (560 × 420 pixels, file size: 7 KB, MIME type: image/png)

Summary

Description

(Colors are believed to be: Blue=Susceptible, Green=Infected, and Red=Recovered)
An epidemiological graph for the SIR model. S represents the number of susceptibles, I the number of infectious people and R the number of recovered.

Graph generated using MATLAB code:
Date 6 June 2006 (original upload date)
Source No machine-readable source provided. Own work assumed (based on copyright claims).
Author No machine-readable author provided. Bye~commonswiki assumed (based on copyright claims).

sirsys.m program

beta=0.001;v=0.1;%;%before modified, beta=0.005,v=0.05,
                       the figure produced by running this program in matlab is different with Fig.Sirsys-p9.png
                     so let beta=0.001,v=0.1, and try again, then the resoult is right.
options = odeset ('RelTol',1e-4,'AbsTol',1e-4);
[T,Y] = ode45(@sirsys1,[0 60],[500 1 0],options,beta,v);
plot(T,Y(:,1),'.',T,Y(:,2),'.',T,Y(:,3),'.')

sirsys1.m function

function dy = sirsys1(t,y,beta,v)
dy = zeros (3,1);
dy(1)=-beta*y(1)*y(2);            %(force of infection) lambda = beta*y(2)
dy(2)=beta*y(1)*y(2)-v*y(2);
dy(3)=v*y(2);

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

6 June 2006

image/png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:38, 6 June 2006Thumbnail for version as of 14:38, 6 June 2006560 × 420 (7 KB)Bye~commonswikiAn epidemiological graph for the SIR model. S represents the number of susceptibles, I the number of infectious people and R the number of recovered. Graph generated using MATLAB code: ==== sirsys.m program==== <pre> beta=0.001; v=0.1; options = odeset ('

Global file usage

The following other wikis use this file: