www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@lookup1editor/settable.m
function settable(obj, tableptr) %SETTABLE Sets the table which this component edits % % SETTABLE(OBJ, TABLEPTR) sets OBJ to be editing the table in TABLEPTR. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.TablePtr = tableptr; if isempty(tableptr) obj.HasNormaliser = false; else obj.HasNormaliser = ~isa(tableptr.info,'cglookupone'); end obj.Table.clearSelection; obj.update;