I would like to place Tex strings into figure axes properties, 'XTickLabels' or 'YTickLabels'.
Here is an example. I would like the following:
x=1:10;y=sin(x);plot(x,y)set(gca,'XTick',[0 pi 2*pi])set(gca,'XTickLabel',[0 pi 2*pi])
To enhance to:
x=1:10;y=sin(x);plot(x,y)set(gca,'XTick',[0 pi 2*pi])set(gca,'XTickLabel','0|\pi|2*\pi')
Where the X label would show :
0 pi(greek symbol) 2 * pi(greek symbol).
Currently, it shows :
0 /pi 2*/pi.
Best Answer