MATLAB CODE FOR PLOTTING WON'T DISPLAY A LINE

10 ビュー (過去 30 日間)
HERICK KAYANGE
HERICK KAYANGE 2022 年 3 月 16 日
コメント済み: HERICK KAYANGE 2022 年 3 月 16 日
I'M trying to plot a line/graph for y=(R (H.* x.^2.* Beta.^2 - Beta.*x + x .*Beta.* (2 - H .*Beta.*x)))/(K (1 +
H .*x .*Beta).^2).
here are my codes
x=[0:0.002:2];
R=0.12;
betta=2.623;
H=0.2;
K=0.5;
y=(R.*(H.*x.^2.*betta.^2-betta.*x+x.*betta.*(2-H.*betta.*x)))/(K.*(1+H.*x.*betta)).^2;
plot(x,y,'b-')
grid on
  1 件のコメント
HERICK KAYANGE
HERICK KAYANGE 2022 年 3 月 16 日
thanks so much...I appreciate

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

採用された回答

Arif Hoq
Arif Hoq 2022 年 3 月 16 日
try this:
x=[0:0.002:2];
R=0.12;
betta=2.623;
H=0.2;
K=0.5;
y=(R.*(H.*x.^2.*betta.^2-betta.*x+x.*betta.*(2-H.*betta.*x)))/(K.*(1+H.*x.*betta)).^2;
plot(x,y,'*')
grid on
  2 件のコメント
Arif Hoq
Arif Hoq 2022 年 3 月 16 日
or
x=[0:0.002:2];
R=0.12;
betta=2.623;
H=0.2;
K=0.5;
y=(R.*(H.*x.^2.*betta.^2-betta.*x+x.*betta.*(2-H.*betta.*x)))/(K.*(1+H.*x.*betta)).^2;
plot(y,'o')
grid on
HERICK KAYANGE
HERICK KAYANGE 2022 年 3 月 16 日
thanks so much

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by