MATLAB Answers

hi

Hi,

How to label X axis in the form of characters.

Regards,

siva

  0 Comments

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


Hi,

   Thanks for your help.

Regards, Siva siva@sdatech.in

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today