www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmTableSetupView/pUpdateTableSel.m
function pUpdateTableSel(obj) %PUPDATETABLESEL Update display of selected tables % % PUPDATETABLESEL(OBJ) updates the gui for the object to correctly reflect % the tables that have been selected. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isempty(obj.MessageService) ... && ~isempty(obj.MessageService.SampleTakenModel) tables = obj.MessageService.TableNames(obj.MessageService.TableWillBeCreated); set(obj.hNumTablesLabel, ... 'String', sprintf('Number of tables to create: %d', length(tables)), ... 'Enable', 'on'); else set(obj.hNumTablesLabel, ... 'String', 'Number of tables to create:', ... 'Enable', 'off'); end