%% Square Root of Matrix Elements
% Create a 4-by-4 matrix of real, positive values.

X = magic(4)

%
% Compute the square root of each element in X.

Y = realsqrt(X)

% Copyright 2012 The MathWorks, Inc.