Manipulate values on axes MATLAB
Show older comments
I am plotting a graph, and the plot that I want is between 2000 and 2010 seconds on the x axis. Although I want the plot to be between these values, I would like the x-axis on the plot to be between 0 and 10 seconds. In other words still have the same plot (the y-axis values between that are in the range 2000-2010 seconds), but manipulate the values on the x-axis to show a lower value. Does anyone know if this is possible? I am using Matlab R2015b.
Accepted Answer
More Answers (1)
Thorsten
on 4 Dec 2015
set(gca, 'XTickLabel', 0:10)
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!