Manipulate values on axes MATLAB
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Katrine G. Andersen
am 4 Dez. 2015
Kommentiert: Walter Roberson
am 5 Dez. 2015
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.
0 Kommentare
Akzeptierte Antwort
Adam
am 4 Dez. 2015
Bearbeitet: Adam
am 4 Dez. 2015
When you call plot you can pass in x data and y data. These can be anything you want so just set one to be 2000 to 2010 and the other to be 0 to 10 if that is what you are trying to do.
e.g.
figure; hAxes = gca;
plot( hAxes, 0:10, 2000:2010 )
The x or y data can obviously be manipulated subsections of some other array also.
4 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!