function boo = isconjugate(r)
%ISCONJUGATE   Checks if roots form a complex conjugate set.

%  Copyright 1986-2018 The MathWorks, Inc.
boo = isequal(sort(r(imag(r)>0)),sort(conj(r(imag(r)<0))));