How to change the x-axis values in a plot
Afficher commentaires plus anciens
Hi,
Hoping someone can help. I've tried searching for this, and have seen many different replies which seem to relate to changing the labels rather than the values. Essentially, i'm trying to plot the kinetic energy required to accelerate a mass to various different velocities on a route (with the y axis being the kinetic energy - y=0.5*m*v^2). The velocities go up and down.
When i try too input the values to Matlab, the graph i get back plots a line that turns back onitself(see below), rather than continueing in a in the positve x direction, which i assume is because it thinks i want to plot the x-axis with ascending numbers. Is there a way to change the x-axis values to the speicifc velocities?
I want the the x-axis values to be the velocities on my "route" so: 30mph, then 20mph, then 50, 70, 30, 0 (as an example)

Is there a better way to plot this?
Any help would be greatly appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

