write on xaxis of graph

2 次查看(过去 30 天)
i wrote the below code for plotting a time graph... in the xtick label i want the 2 points to be named as PCA and LDA.... when i do as below i'm not getting it correctly...

采纳的回答

Mischa Kim
Mischa Kim 2014-10-28
Elysi, not quite sure, what you need to do, but this does the trick:
set(gca,'XTickLabel',{'PCA', 'LDA'},'XTick',[1 2]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by