Why can't i plot this equation?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
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))
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!