www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@actionlist/add.m
function add(h, cmd, date) %ADD Add a command to the action list % % ADD(H, CMD) adds the callback command CMD to the end of the list % of actions. % % ADD(H, CMD, DATE) specifies the date that is used to order actions % during playback. The DATENUM function is used to convert the date input % into a serial date number for ordering. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==2 h.Actions = [h.Actions; mbcfoundation.action(cmd)]; else h.Actions = [h.Actions; mbcfoundation.action(cmd, date)]; end h.Actions(end).connect(h, 'up');