|
"Catalin Eberhardt" <longtalker@gmail.com> wrote in message <gmlmp1$7be$1@fred.mathworks.com>...
> I'm trying to make values displayed on the log-scale axis of my plot as meaningful as possible, and towards that goal I found this very useful file in the Exchange - http://www.mathworks.com/matlabcentral/fileexchange/11563 - that allows easy customisation of the values that are displayed on the log axis.
>
> The only problem is, I would really want the values to be displayed in regular scientific (exponential) notation, with superscripts, e.g. 5*10^2, rather than in the format in which they are currently displayed (e.g. 5e+2, see program screenshot at http://www.mathworks.com/matlabcentral/fx_files/11563/1/logticks.png )
>
> Does anyone know a way to do this? Thanks very much in anticipation.
Have you tried to just patch the line in logticks.m where the tick labels are made?
I would try using
sprintf('y = %4.1fx^{%4.2f}',a,b)
where a = mantissa and b = exponent
|