Why can't i plot this equation?

1 次查看(过去 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

采纳的回答

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 CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by