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

2 次查看(过去 30 天)
could anyone tell me how to set the x axis to (2 4 6 8 10 12)

采纳的回答

YT
YT 2018-3-5
Like so
plot(x,y);
xlim([2,12]);
set(gca,'XTick',[2:2:12]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by