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