Matlab won't plot my function

2 ビュー (過去 30 日間)
Rachel Berger
Rachel Berger 2015 年 12 月 6 日
コメント済み: Rachel Berger 2015 年 12 月 6 日
Hi there, I'm trying to plot this function in matlab, but the plot shows up blank. The workspace says y=1.524 which confuses me. Any ideas?
t=0:0.1:1;
y=(2*t+1)/(t.^2+1);
plot(t,y)

採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 6 日
編集済み: Walter Roberson 2015 年 12 月 6 日
t=0:0.1:1;
y=(2*t+1) ./ (t.^2+1);
plot(t,y)
  1 件のコメント
Rachel Berger
Rachel Berger 2015 年 12 月 6 日
Thank you!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by