www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexpr/concheck.m
function ret = concheck(obj) %CONCHECK Return ability to calculate constraint % % OK = CONCHECK(OBJ) returns true if the expression M can calculate the % constraint boundary for OBJ. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % cgexpr classes need to look down the expression chain to check for any % constraining expressions pInp = getinputs(obj); if isempty(pInp) ret = false; else % The loop here allows for an early break if a constraint-capable expression is % found anywhere. objInp = infoarray(pInp); for n = 1:length(pInp) ret = concheck(objInp{n}); if ret break end end end