if there is startat, is there also stopat?

1 次查看(过去 30 天)
why is there a startat function for timer, but there is none for stopping (such as stopat *if there's any) ?
thank you..

采纳的回答

Walter Roberson
Walter Roberson 2011-2-7
Because it is trivial to write your own?
stopat = @(Timer,stoptime) startat(timer('StartFcn', @(src,evt) stop(Timer)), stoptime);
  9 个评论
Kent Cabarle
Kent Cabarle 2011-2-7
Sir Walter, it works.. however, this warning went out..
*********************************************************
Warning: One or more timer objects were stopped before
deletion.
*********************************************************
The thing you said "not" times, maybe the result of that.. ^^ .. But still it worked.. thank you.. thumbs up..
Kent Cabarle
Kent Cabarle 2011-2-7
@Jiro: Thanks also for the sharing of idea..it was helpful.. Thank you.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by