function Extent = extent(Constr)
%EXTENT  Returns bounding rectangle [Xmin Xmax Ymin Ymax]

%   Author(s): Bora Eryilmaz
%   Revised:
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $  $Date: 2004/12/10 19:31:53 $

RangePha = unitconv(Constr.OriginPha + [-1 1] * Constr.MarginPha, ...
		    'deg', Constr.PhaseUnits);
RangeMag = unitconv([0 0], 'dB', Constr.MagnitudeUnits);
Extent = [RangePha, RangeMag];
