www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@contable1/nActiveFactorsAllowed.m

    function [mn, mx] = nActiveFactorsAllowed(c)
%NACTIVEFACTORSALLOWED Number of import factors supported by a constraint class
% 
%  NF = NACTIVEFACTORSALLOWED(CON)
%  [MN, MX] = NACTIVEFACTORSALLOWED(CON)
% 
%  NF = [MN, MX] is the minimum and maximum number of (active) factors allowed
%  by the constraint.
% 
%
%  See also CONTABLE1, CONBASE/NFACTORS, CONBASE/NACTIVEFACTORS.
   
%  Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.

mn = 2;
mx = 2;
if nargout < 2,
    mn = [mn, mx];
end