www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmeditor/setTablesToMake.m

    function setTablesToMake(obj, index)
%SETTABLESTOMAKE Set list of tables that will be made
%
%  SETTABLESTOMAKE(OBJ, INDEX) sets the list of tables that will be made to
%  the given indices.  If INDEX is a logical vector it will directly
%  replace the current setting.  If INDEX is a double vector, the tables at
%  those indices will be marked to be made and the rest will not.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


if islogical(index)
    obj.TableWillBeCreated = index;
else
    logicalidx = false(size(obj.TableWillBeCreated));
    logicalidx(index) = true;
    obj.TableWillBeCreated = logicalidx;
end
obj.send('TableSelectionChanged', handle.EventData(obj, 'TableSelectionChanged'));