sqrt(m)

The sqrt(m) function returns the square root of each element in m.

Example

OML

>> m=[1 -2;-3 4]

1 -2

-3 4

>> sqrt(abs(m))

1 1.41421

1.73205 2