signm — matrix sign function
For square and Hermitian matrices X=signm(A) is matrix sign function.
A=rand(4,4);B=A+A';X=signm(B);spec(B),spec(X)