www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcfoundation/@timer/scheduleRepeatingAt.m

    function  hTask = scheduleRepeatingAt(obj, Delay, Period, Callback)
%SCHEDULEREPEATINGAT Schedule a repeating task
%
%  HTASK = SCHEDULEREPEATINGAT(OBJ, DELAY, PERIOD, CALLBACK) schedules a
%  task to take place in DELAY milliseconds and repeat every PERIOD
%  milliseconds. The task will execute CALLBACK, which is a standard MATLAB
%  callback syntax.  HTASK is a reference that can be used to stop or reset
%  the task if desired.

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


hTask = obj.hJavaTimer.addTask(Callback, Delay, Period);