フィルターのクリア

Function not accepting all available x values

1 回表示 (過去 30 日間)
DONGUK KIM
DONGUK KIM 2020 年 4 月 23 日
So I wrote a simple code to get a plot of a function
x = linspace(0,100,101);
y = 4*x.*(x+1) / (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2)
plot(x,y);
and for some reason y only comes out as a single value
Is there any reason why this might be happening?

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 4 月 23 日
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);
  1 件のコメント
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 4 月 23 日
One dot was missing ...

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by