www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexprgroup/setOutputs.m

    function obj = setOutputs(obj, newIdx)
%SETOUTPUTS Set the outputs from the expression chain
%
%  OBJ = SETOUTPUTS(OBJ, NEWIDX) sets the oututs from the expression chain
%  to be the expressions at the indices NEWIDX in the static chain.

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



% Remove all current outputs
obj = removeOutput(obj, obj.Outports);

% Add new ones
obj = addOutput(obj, newIdx);