Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Muhammad Said
Muhammad Said le 30 Juin 2021
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);

Réponses (1)

Cris LaPierre
Cris LaPierre le 30 Juin 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!

Translated by