www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgtabgradconstraint/isComplete.m

    function ret = isComplete(obj)
%ISCOMPLETE Check whether the object setup is complete
%
%  RET = ISCOMPLETE(OBJ) returns true if the object has been set up with
%  enough information to be able to perform in the expected manner, for
%  example all required helper expressions have been provided.

%   Copyright 2006-2009 The MathWorks, Inc.

ret = ~isempty(obj.pItem) && isvalid(obj.pItem) && ...
    ~isempty(obj.pAxisVariables) && all(isvalid(obj.pAxisVariables));