MATLAB: Write on xaxis of graph

graph

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…

Best Answer

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