plotting a 2nd order matlab

29 次查看(过去 30 天)
Joaquim
Joaquim 2017-5-3
评论: Wine 2017-5-3
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 个评论
Wine
Wine 2017-5-3
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by