www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffGraphView/pUpdateSelection.m
function pUpdateSelection(obj, R, C) %PUPDATESELECTION Update the current cell selection % % PUPDATESELECTION(OBJ, R, C) updates the current cell selection in the % data model from the row R and column C. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. oldR = obj.hDataModel.SelectedRow; oldC = obj.hDatamodel.SelectedColumn; obj.hDataModel.SelectedRow = R; obj.hDatamodel.SelectedColumn = C; if any(oldR~=R) || any(oldC~=C) % Send notification of change s = struct('Row', R, 'Column', C); obj.send('SelectionChange', xregGui.xregEventData(obj, 'SelectionChange', s)); end