sqrtm

Matrix square root.

Syntax

R = sqrtm(X)

Inputs

X
A matrix.

Outputs

R
The matrix square root.

Examples

Matrix square root:
x = [10,  7,  8,  7;
      7,  5,  6,  5;
      8,  6, 10,  9;
      7,  5,  9, 10];
r = sqrtm(x)
r = [Matrix] 4 x 4
2.38906  1.51699  1.07756  0.91104
1.51699  1.18177  0.99139  0.56508
1.07756  0.99139  2.35675  1.51716
0.91104  0.56508  1.51716  2.55909

Comments

Reference: N.J. Higham. Numerical Analysis Report No. 336., Manchester Centre for Computational Mathematics, Manchester, England, January 1999.