www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@modelSetupList/pRemove.m
function pRemove(obj) %PREMOVE Add selected models to tradeoff % % PREMOVE(OBJ) removes the selected models from the tradeoff and updates % the lists. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. hList = obj.hTradeoffModelList; pT = hList.SelectedItems; if ~isempty(pT) PR = xregGui.PointerRepository; id = PR.stackSetPointer(obj.Parent, 'watch'); removeDisplayExpression(obj.TradeoffPointer.info, pT); obj.refresh; obj.send('ModelSetupChanged', handle.EventData(obj, 'ModelSetupChanged')); PR.stackRemovePointer(obj.Parent, id); end