Function Running in the Background

조회 수: 1 (최근 30일)
Jordi Riba
Jordi Riba 2012년 8월 21일
댓글: Scott Feltman 2019년 7월 16일
Hello, I have a function which is constantly updating my folder with data from our network, however, when I run it I loose control of my command window, since I cannot input any other order. I can open another Matlab and then can keep working while my data is being updated, but this is not the correct way. Any ideas? Later on I will build a GUI to operate the whole thing, but at the moment I have to do everything by calling m-files and input names throught the command window. Thanks in advance. Jordi

채택된 답변

Titus Edelhofer
Titus Edelhofer 2012년 8월 21일
Hi,
usually such things can be done using the function
timer
You might think of timer as an "interrupt" called periodically by MATLAB.
Titus
  댓글 수: 1
Scott Feltman
Scott Feltman 2019년 7월 16일
Do you think you can clarify how the timer function is used? I have a similar scenario happening where I need a process to run in the background while the other code runs in the same window.

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

추가 답변 (1개)

Jordi Riba
Jordi Riba 2012년 8월 29일
Hallo Titus,
Thanks for the answer, it worked !!!
sorry for the late reply.
Jordi

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by