www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/PlotRealValuedNaturalLogarithmExample.m
%% Real-Valued Natural Logarithm % % Copyright 2015 The MathWorks, Inc. %% % Create a vector of real numbers in the interval |[0.25,5]|. X = (0.25:0.25:5)'; %% % Calculate the natural logarithm of the vector, |X|. Y = log(X)