www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgconconstraint/private/phasmatchedvars.m

    function out = phasmatchedvars(obj)
%PHASMATCHEDVARS Private method that checks the inputs
%
%  PHASMATCHEDVARS(OBJ) returns true if the correct number of inputs have
%  been matched up for the constraint.

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


pInp = getinputs(obj);
out = ~isempty(obj.ConObject) ...
    && length(pInp)==nActiveFactors(obj.ConObject) ...
    && all(isvalid(pInp));