function Slope = slope(Constr,iConstr)
%SLOPE  Computes constraint slope

%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.2 $  $Date: 2004/12/10 19:30:52 $

if nargin < 2, iConstr = Constr.SelectedEdge; end

Slope = round(diff(Constr.Magnitude(iConstr,:))./ ...
   diff(log10(Constr.Frequency(iConstr,:))) );
