www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fspecs/@bsweightconstrained/set_constraints.m

    function constraints = set_constraints(this, constraints)
%SET_CONSTRAINTS PostSet function for the 'constraints' property.

%   Copyright 2011 The MathWorks, Inc.

if isempty(constraints), 
    return; 
end

% There is a listener installed for the privConstraints property. Set it to
% trigger the callback function that will add ripple properties dynamically
% if the band has been specified as constrained. 
this.privConstraints = constraints;