The ability to create a logarithmic scale COLORMAP or COLORBAR is not available in MATLAB.
A fellow customer posted the following suggested workaround for this problem on our USENET newsgroup, comp.soft-sys.matlab (CSSM):
d = log10(D);
mn = min(d(:));
rng = max(d(:))-mn;
d = 1+63*(d-mn)/rng;
hC = colorbar;
L = [0.01 0.02 0.05 0.1 0.2 0.5 1 2 5 10 20 50 100 200 500 1000 2000 5000];
l = 1+63*(log10(L)-mn)/rng;
Note that this method has not been fully tested by MathWorks. MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.