www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregbdrybranch/getInputFactors.m

    function cif = getInputFactors(branch, stages)
%GETINPUTFACTORS Get the input factors from a boundary branch node
%
%  CIF = GETINPUTFACTORS(BRANCH, STAGES) looks to the parent of BRANCH to
%  get the input factors.
%
%  CIF = GETINPUTFACTORS(BRANCH) uses STAGES = GETSTAGES( BRANCH ).
%
%  See also XREGBDRYBRANCH, CONINPUTFACTOR.

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

p = Parent( branch );
if isempty( p ),
    cif = [];
elseif nargin < 2,
    cif = p.getInputFactors( branch.Stages );
else
    cif = p.getInputFactors( stages );
end

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|