www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgoptimnode/removeOutput.m
function obj = removeOutput(obj, idx) %REMOVEOUTPUT Remove an output from the optimization. % % OBJ = REMOVEOUTPUT(OBJ, IDX) removes the specified outputs from the % optimization. IDX may be indices or a list of pointers to remove. % Copyright 2005-2007 The MathWorks, Inc. if isa(idx, 'xregpointer') idx = findptrs(idx, obj.OutputData); end % Delete nodes: this will remove the output data pointers via delchild pChild = children(obj); for n = idx pChild(n).delete; end obj = info(obj);