Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

hi

Asked by Sivakumaran Chandrasekaran on 28 Mar 2012

Hi,

How to label X axis in the form of characters.

Regards,

siva

0 Comments

Sivakumaran Chandrasekaran

Tags

Products

No products are associated with this question.

2 Answers

Answer by Richard on 28 Mar 2012
Accepted answer
set(gca,'XTickLabel',{'data point 1','data point 2'});

where data point 1 and data point 2 will become the name of that particular xlabel. You need to have the number of strings to be equal to the number of points.

0 Comments

Richard
Answer by Sivakumaran Chandrasekaran on 28 Mar 2012

Hi,

   Thanks for your help.

Regards, Siva siva@sdatech.in

0 Comments

Sivakumaran Chandrasekaran

Contact us