www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@stack/clear.m
function clear( obj ) %CLEAR Clear the stack of all items % % obj.clear will clear out all of the items currently in the stack % % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.IDList(:) = -1; obj.ObjectList(:) = {[]}; if obj.nItems obj.nItems = 0; obj.send('TopItemChange', handle.EventData(obj, 'TopItemChange')); end