%%
***********************[Random
Test]***********************
%*******************[Change Matlab axis label
to Exponential + move the exponet above the
axis]*********************************
plot([0 1],[0
.02])
oldLabels =
str2num(get(gca,'YTickLabel'));
scale =
10^2;newLabels = num2str(oldLabels*scale);
set(gca,'YTickLabel',newLabels,'units','normalized');
posAxes =
get(gca,'position');
textBox =
annotation('textbox','linestyle','none','string',['x 10it^{'
sprintf('%0.2f',log10(1./scale)) '}']);
posAn =
get(textBox,'position');
set(textBox,'position',[posAxes(1)
posAxes(2)+posAxes(4) posAn(3)
posAn(4)],'VerticalAlignment','cap');
%%
***********************[Random
Test]***********************
Src link:
http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/112386