%% Natural Log of Matrix
% Create a 4-by-4 matrix and compute the natural log of each element.

X = magic(4)

%

Y = reallog(X)

% Copyright 2012 The MathWorks, Inc.