Determine whether quaternion array is real
(Quaternion and octonion overloadings of standard MATLAB® function)
TF = isreal(X)
isreal(X) returns logical 1 (true) if all the elements of the quaternion array X are real, that is have zero imaginary parts.