How leave matlab asleep for a while

조회 수: 1 (최근 30일)
Mario Martos
Mario Martos 2016년 7월 5일
댓글: José-Luis 2016년 7월 5일
Hello ,
I would like to know how could leave paused or leave matlab asleep for a while. For example , every 30 seconds go by checking a process or query a database by while, for, pause ... but do not know how could run , I want this leisurely time to time without doing anything to from time to time perform a check. Thanks in advanced!
  댓글 수: 1
José-Luis
José-Luis 2016년 7월 5일
I don't get it. Do you want to run a Matlab script and display some output every 30s? In that case use a timer. Do you want to have a Matlab process running and have some other process check on it every 30s? In that case use some sort of interprocess communication. Could be as simple as saving/reading a file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 7월 5일
You could use a timer() object for that.

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by