plotting a 2nd order matlab
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163700/image.png)
However I want a single line and not a filled form. Anyone know how to this?
Joaquim
1 commentaire
Wine
le 3 Mai 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
Réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots 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!