フィルターのクリア

Surface Plot for Basic Reproductive Number of Ross , Macdonald Malaria model

5 ビュー (過去 30 日間)
I am trying to replicate a plot for basic reproductive number
here is my code
[mu2,a] =meshgrid(0.01:0.001:0.03,0.005:0.01:0.5);
b =0.5;
c=0.5;
m=20;
r=0.01;
% Ro = (m.*a.^2.*b.*c)./(r.*mu2);
12936_2010_1790_MOESM5.png
Screenshot (13).png
surf(mu2,a,Ro)
The problem is that the graph I get is not exactly what is in the paper, especially the range of a,mu2 and R0, there seem to be a mistake on the R0 formula , I don't know what is wrong. Please help

採用された回答

Anmol Dhiman
Anmol Dhiman 2019 年 8 月 30 日
You can use the following code
[mu2,a] =meshgrid(0.1:0.01:0.5,0.01:0.001:0.03);
b =0.5;
c=0.5;
m=20;
r=0.01;
Ro = (m.*a.^2.*b.*c)./(r.*mu2);
surf(mu2,a,Ro)
hold on
z2 =0*mu2 + 1
surf(mu2,a,z2,'red')
I got this figure using the above code:ExampleModel.png
  3 件のコメント
Anmol Dhiman
Anmol Dhiman 2019 年 9 月 3 日
Hi update the surf command to below line
surf(mu2,a,z2,'MarkerFaceColor','red')
Chukwuma Ugoala
Chukwuma Ugoala 2019 年 9 月 3 日
Thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by