Why can't i plot this equation?

3 ビュー (過去 30 日間)
Alexader Svensson
Alexader Svensson 2016 年 11 月 7 日
編集済み: James Tursa 2016 年 11 月 7 日
f=@(x)((1+x.^2-1.5*x.^3+0.5*x.^4)/(1+x.^4));
x=linspace(-25,25);
plot(x,f(x))
grid on

採用された回答

James Tursa
James Tursa 2016 年 11 月 7 日
編集済み: James Tursa 2016 年 11 月 7 日
Use element-wise divide operator ./ instead of matrix divide operator /
f=@(x)((1+x.^2-1.5*x.^3+0.5*x.^4)./(1+x.^4))

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