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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeLabels and Styling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by