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

    %% Logarithmic Scale for y-Axis
% Create a plot with a logarithmic scale for the
% y-axis and a linear scale for the x-axis.

% Copyright 2015 The MathWorks, Inc.


x = 0:0.1:10;
y = exp(x);

figure
semilogy(x,y)