Why do I get a graph without a line when I try to plot the following equation?
古いコメントを表示
x = -1:.1:4;
y = (41.7*x)/(x.^2+1);
plot(x,y)
I am not getting any error messages, all I see is a blank graph when I run the script.
採用された回答
その他の回答 (1 件)
dpb
2016 年 2 月 2 日
Need the "dot" operator on the divide as well as the exponent...as is it's a matrix operator, not element-wise.
doc / % for details
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!