MATLAB: Hi

label;

Hi,
How to label X axis in the form of characters.
Regards,
siva

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