Hello, I want to draw a 2D ghraph for R_{0} epidemic model.

2 ビュー (過去 30 日間)
Muhammad Said
Muhammad Said 2021 年 6 月 30 日
回答済み: Cris LaPierre 2021 年 6 月 30 日
I want to Draw six different values for Ro values like (0.5,1,1.5,2,2.5,3) in single 2D graph.
If someone help me I will be Thankful.
Thank You.
b1 =0.022;
bh =0.123;
d=0.145;
g =0.123;
pi =0.86;
u =0.0245;
ui =0.0234;
uh=0.453;
N =.5;
Ro = b1.*bh.*N./u.*(d+g+u+ui)*(pi+u+uh);

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 6 月 30 日
Ch 6 (array calculations) and ch 9 (plotting) of MATLAB Onramp will show you how to do this.
You might also find the examples and other information on the documentation page for the plot function insightful as well.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by