MATLAB: Can’t i plot this equation

plot

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

Best Answer

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