Y = sqrt(X)
sqrt(X)
is the square root of the elements of X
. For the elements of X
that are negative or complex, sqrt(X)
produces complex results.
See sqrtm
for the matrix square root.
sqrt((-2:2)')
ans =
0 + 1.4142i
0 + 1.0000i
0
1.0000
1.4142
exp
,log
,sqrtm
(c) Copyright 1994 by The MathWorks, Inc.