How to change the x-axis values in a plot
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

