function logy2raw(base,precision)
%logx2raw([base],[precision])
%
%Converts Y-axis labels from log to raw values.
%base:    	base of log transform; default base is e.
%precision:	number of decimal places;  default  is two.
%
%Example:
% x=linspace(-3,0,11);
% plot(log(x),log(x.^2));
% logx2raw
% logy2raw

%SEE ALSO;   Logx2raw
%11/17/96	gmb	Wrote it.
%6/6/96	        gmb added precision argument
%01/30/02       gmb updated it to use cell arrays, and to use original
%                xtick values instead of converting labels.  This way,
%		multiple calls to this function doesn't keep converting
%		the axis.

if ~exist('base','var') 
    base=exp(1);
end

if ~exist('precision','var')
	precision=2;
end

origYTick = get(gca,'YTick');
newYTick = base.^(origYTick);
newYLabel = num2str(newYTick',precision);
set(gca,'YTickLabel',newYLabel);





