www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@actionlist/playback.m
function playback(h,indx,src,evt) %PLAYBACK Execute actions from the list % % h.playback % h.playback(indx) % h.playback(indx,src,evt) % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<2 indx = ':'; end if nargin<3 src = h; evt = []; end act = h.Actions(indx); % Re-order actions by their datestamp dates = get(act, {'Date'}); [unused, execidx] = sort([dates{:}]); % Execute the actions for n = execidx xregcallback(act(n).Command, src, evt); end