필터 지우기
필터 지우기

if there is startat, is there also stopat?

조회 수: 1 (최근 30일)
Kent Cabarle
Kent Cabarle 2011년 2월 7일
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