Why can't i plot this equation?

3 visualizzazioni (ultimi 30 giorni)
Alexader Svensson
Alexader Svensson il 7 Nov 2016
Modificato: James Tursa il 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

Risposta accettata

James Tursa
James Tursa il 7 Nov 2016
Modificato: James Tursa il 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))

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by