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

    function c= des_constraints(factors)
% DES_CONSTRAINTS

%  Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc.



if nargin==0
   factors= {'A','B','C','D'};
end

if ~isstruct(factors)
   c.Factors= factors(:)';
   c.InteriorPoints= [];
   c.version = 3;
   c.Constraints={};
else
   c=factors;
end
c= class(c,'des_constraints');