I want to use a words like, let\'s say, \'A\', \'B\' and \'C\' on X-axis to show their corresponding properties on Y-axis. How can I write these strings on X-axis instead of
Use 'XTick' and 'XTickLabel' properties of the axes handle. Here's a simple example:
'XTick'
'XTickLabel'
x = 1:5; y = rand(size(x)); plot(x, y, 'b') set(gca, 'XTick',1:5, 'XTickLabel',{'A' 'B' 'C' 'D' 'E'})