www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/LogarithmicScaleForBothAxesExample.m

    %% Logarithmic Scale for Both Axes
% Create a plot using a logarithmic scale for both the x-axis and the
% y-axis. Use a line with square markers. Display the grid.

x = logspace(-1,2);
y = exp(x);
loglog(x,y,'-s')
grid on