www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@contable2/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 CONTABLE2, CONBASE/NFACTORS, CONBASE/NACTIVEFACTORS.
   
%  Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.

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