MATLAB: Am I unable to generate a label for the x-axis using the XLABEL function on a SEMILOGY plot in MATLAB 6.5 (R13)

errorMATLABsemilogyxlabel

I use the following code to generate a plot:
xi = 0:0.0025:1;
A = betainc(xi,400,1);
semilogy(xi,A);
xlabel('my xlabel');
However, no label for the x-axis is generated, even though the XLABEL function is used.

Best Answer

There is a bug in MATLAB 6.5 (R13) when using the XLABEL function with SEMILOGY plots.
To work around around this issue:
1. After using the XLABEL function, use the following commands:
set(get(gca,'xlabel'),'units','pixels')
set(get(gca,'xlabel'),'Pos', [10 10])
2. From the toolbar in the figure window, click on 'Edit Plot' button and move the x-axis label to the desired location.