how to plot graph for SIR epidemic model

my SIR epidemic model is
dS/dt= beta-lembda*I*S-u*S;
dI/dt=lembda*I*S-u*I-gamma*R;
dR/dt=gamma*R-u*R;
t=0:1:100;
gamma=.10;
lembda=.5;
u=.2;
S=50;I=20;R=30;

댓글 수: 6

KSSV
KSSV 2022년 1월 18일
What have you attempted?
function x = sir(t, x)
x(1)=0:50:100;
x(2)=0:10:50;
x(3)=0:10:70;
beta = .5;
delta = .3;
x(1) = -beta * x(1) * x(2);
x(2) = beta * x(1) * x(2) - delta * x(2);
x(3) = delta * x(2);
plot (t,x(1),t,x(2),t,x(3))
end
please guide me
function x = sir(t, x)
x(1)=0:50:100;
x(2)=0:10:50;
x(3)=0:10:70;
beta = .5;
delta = .3;
x(1) = -beta * x(1) * x(2);
x(2) = beta * x(1) * x(2) - delta * x(2);
x(3) = delta * x(2);
plot (t,x(1),t,x(2),t,x(3))
end
Sunday Aloke
Sunday Aloke 2022년 11월 2일
이동: Sam Chak 2024년 10월 14일
Please I need help on the matrix in the document attached. My MATLAB has no symbolic toolbox as in to run, can someone help me and get the determinants of the matrices l?
Thanks
andy
andy 2024년 10월 14일
이동: Sam Chak 2024년 10월 14일

Bonjour à tous je suis entrain de travailler sur un modèle SVEIR structuré sur 7 variables S, V1 V2 Vm E I et R. je souhaite être guider s'il vous plaît.

댓글을 달려면 로그인하십시오.

답변 (1개)

andy
andy 2024년 10월 14일

0 개 추천

Bonjour à tous je suis entrain de travailler sur un modèle SVEIR structuré sur 7 variables S, V1 V2 Vm E I et R. je souhaite être guider s'il vous plaît.

카테고리

제품

릴리스

R2021b

질문:

2022년 1월 18일

이동:

2024년 10월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by