Why isn't the plot showing up? (new on programing)

1 回表示 (過去 30 日間)
simon ericsson
simon ericsson 2021 年 10 月 17 日
コメント済み: simon ericsson 2021 年 10 月 17 日
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)/(x.^2 + 4.*x + 5);
plot(x,y(x),'r','LineWidth',2)

採用された回答

KSSV
KSSV 2021 年 10 月 17 日
x = linspace(-10,10,100);
y = @(x) (x.^2 + x.^2 + 3.*x)./(x.^2 + 4.*x + 5); % element by elememnt division
plot(x,y(x),'r','LineWidth',2)
  1 件のコメント
simon ericsson
simon ericsson 2021 年 10 月 17 日
Thank you! I feel stupid when I see it now :(

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

その他の回答 (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