MATLAB Answers

plotting a 2nd order matlab

17 views (last 30 days)
Joaquim
Joaquim on 3 May 2017
Commented: Wine on 3 May 2017
Hello everybody,
I'm trying to plot a 2nd order polynomial. I have a vector X and the y values are determined by the equation
Y= -0.01291*X.^2-0.1971*X+47.39;
When I try to plot using
plot(X,Y)
I get this plot
However I want a single line and not a filled form. Anyone know how to this?
Joaquim

  1 Comment

Wine
Wine on 3 May 2017
Hi,
how have you defined your X-vector? Because the look of your plot depends on this X-vector. If you use for example
X = 0:1:100;
as vector definition, the plot will be a line.
Cheers Wine

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags