36 views (last 30 days)

Roger Stafford
on 23 Feb 2018

x = linspace(-10,10);

f = 5*x.^2+9*x+2;

G = 3*x+12;

plot(x,f,'r-',x,G,'g-')

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 1 Comment

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/384314-i-want-to-plot-f-x-and-g-x-in-same-graph-for-x-10-10-how-can-i-do-this#comment_538434

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/384314-i-want-to-plot-f-x-and-g-x-in-same-graph-for-x-10-10-how-can-i-do-this#comment_538434

Sign in to comment.