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

    %% Real-Valued Common Logarithm
%

% Copyright 2015 The MathWorks, Inc.


%%
% Create a vector of real numbers in the interval |[0.5,10]|.
X = (0.5:0.5:10)';

%%
% Calculate the common logarithm of |X|.
Y = log10(X)