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...

 Respuesta aceptada

Mischa Kim
Mischa Kim el 28 de Oct. de 2014

1 voto

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

1 comentario

Elysi Cochin
Elysi Cochin el 28 de Oct. de 2014
Editada: Elysi Cochin el 28 de Oct. de 2014
thank you sir for the reply...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Networks en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Oct. de 2014

Editada:

el 28 de Oct. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by