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

2 views (last 30 days)
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);

Answers (1)

Cris LaPierre
Cris LaPierre on 30 Jun 2021
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.

Community Treasure Hunt

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

Start Hunting!