How to label X axis in the form of characters?

3 views (last 30 days)
Hi,
How to label X axis in the form of characters.
Regards,
siva

Accepted Answer

Richard
Richard on 28 Mar 2012
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.
  2 Comments
Jan
Jan on 6 Sep 2021
[Moved from section for Asnwers]
Hi
Thanks for your help.
Regards, Siva siva@sdatech.in

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!