Why the following code does not give me the 3D plot. Please someone help me out.

1 回表示 (過去 30 日間)
Z. A
Z. A 2021 年 9 月 26 日
編集済み: Chunru 2021 年 9 月 26 日
clc;clear;close all;
syms Lambda beta1
delta=-2.9994;
beta2=0.732932;
rho1=-0.187641;
rho2=0.187641;
gama1=-0.254351;
gama2=-0.553853;
delta1=-0.0127175;
delta2=-0.179079;
R0=Lambda*((beta1.*gama2.*rho1+beta2.*gama1.*rho2)+(beta1.*delta2.*rho1+beta2.*delta1.*rho2))./delta.*((rho1+rho2).*(gama1+delta1).*(gama2+delta2));
ezmesh(R0,[0,1],100)
colormap parula

回答 (1 件)

Chunru
Chunru 2021 年 9 月 26 日
編集済み: Chunru 2021 年 9 月 26 日
In your definition of R0, there is a term rho1+rho2, which happen to be 0. So R0 is just 0. Check your formula first.

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by