| Contents | Index |
Y = realsqrt(X)
Y = realsqrt(X) returns the square root of each element of array X. Array X must contain only nonnegative real numbers. The size of Y is the same as the size of X.
M = magic(4)
M =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
realsqrt(M)
ans =
4.0000 1.4142 1.7321 3.6056
2.2361 3.3166 3.1623 2.8284
3.0000 2.6458 2.4495 3.4641
2.0000 3.7417 3.8730 1.0000reallog | realpow | sqrt | sqrtm
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |