MATLAB Answers


I want to plot F(x) and G(x) in same graph for x=(-10,10) how can I do this?

Asked by Arkesh Patel on 22 Feb 2018
Latest activity Commented on by Roger Stafford on 23 Feb 2018

  1 Comment

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?

Sign in to comment.

2 Answers

Answer by Star Strider
on 23 Feb 2018

See the documentation on Anonymous Functions (link) and the linspace (link) function.


Sign in to comment.

Answer by Roger Stafford on 23 Feb 2018

x = linspace(-10,10);
f = 5*x.^2+9*x+2;
G = 3*x+12;


Roger, this is tagged as homework ...

Sign in to comment.