Why can't i plot this equation?

3 Ansichten (letzte 30 Tage)
Alexader Svensson
Alexader Svensson am 7 Nov. 2016
Bearbeitet: James Tursa am 7 Nov. 2016
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

Akzeptierte Antwort

James Tursa
James Tursa am 7 Nov. 2016
Bearbeitet: James Tursa am 7 Nov. 2016
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))

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by