www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffInfoBarView/pUpdateInputs.m
function pUpdateInputs(obj) %PUPDATEINPUTS Refresh displayed input values in object % % PUPDATEINPUTS(OBJ) refreshes the values of the tables inputs. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. ms = obj.MessageService; if ~isempty(ms) ... && ~isempty(ms.CurrentTradeoff) ... && ~isempty(ms.CurrentTable) ... && ms.hasValidTableIndex ms.TradeoffServices.setPointValues; pInp = ms.TradeoffServices.pTableInputs; hRow = pInp(1).info; hCol = pInp(2).info; obj.hInputString.String = sprintf('%s = %g, %s = %g', ... getname(hRow), ... getvalue(hRow), ... getname(hCol), ... getvalue(hCol)); else obj.hInputString.String = ''; end