matrixtoquat expression function

Converts a rotation matrix to a quaternion.

See also: quattomatrix

Usage

matrixtoquat(m)

Computes a quaternion which represents the rotation specified by the matrix.