I want to plot F(x) and G(x) in same graph for x=(-10,10) how can I do this?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
f(x)=5x^2+9x+2
G(x)=3x+12
1 commentaire
James Tursa
le 22 Fév 2018
Modifié(e) : James Tursa
le 22 Fév 2018
What have you done so far? What specific problems are you having with your code? Do you know how to evaluate polynomials for a vector input? Do you know how to plot?
Réponses (2)
Roger Stafford
le 23 Fév 2018
x = linspace(-10,10);
f = 5*x.^2+9*x+2;
G = 3*x+12;
plot(x,f,'r-',x,G,'g-')
2 commentaires
Voir également
Catégories
En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!