www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SquareRootOfMatrixElementsExample.m
%% 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)