Why can't i plot this equation?
3 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!