function CompHandles = comphandles(Editor)
%COMPHANDLES  Returns handles of compensator poles and zeros.

%   Author(s): P. Gahinet
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/14 20:21:48 $

HG = Editor.HG;

% Build vector of comp. handles
if isempty(HG.Compensator)
    CompHandles = zeros(0,1);
else
    CompHandles = get(HG.Compensator,{'Zero','Pole'});
    CompHandles = cat(1,CompHandles{:});
end

