www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgconconstraint/isComplete.m
function ok = isComplete(obj) %ISCOMPLETE Check whether expression is ready % % OK = ISCOMPLETE(OBJ) checks whether the expression is ready to be used. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. ok = ~isempty(obj.ConObject); if ok % Check that the inputs are ok pInp = getinputs(obj); nfact = nActiveFactorsAllowed(obj.ConObject); ok = all(isvalid(pInp)) ... && length(pInp)>=nfact(1) ... && length(pInp)<=nfact(2); end