Filter löschen
Filter löschen

could anyone tell me how to set the x axis to (2 4 6 8 10 12)

2 Ansichten (letzte 30 Tage)
Prabha Kumaresan
Prabha Kumaresan am 5 Mär. 2018
Beantwortet: YT am 5 Mär. 2018
could anyone tell me how to set the x axis to (2 4 6 8 10 12)

Akzeptierte Antwort

YT
YT am 5 Mär. 2018
Like so
plot(x,y);
xlim([2,12]);
set(gca,'XTick',[2:2:12]);

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by