Function Running in the Background

10 visualizzazioni (ultimi 30 giorni)
Jordi Riba
Jordi Riba il 21 Ago 2012
Commentato: Scott Feltman il 16 Lug 2019
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

Risposta accettata

Titus Edelhofer
Titus Edelhofer il 21 Ago 2012
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 Commento
Scott Feltman
Scott Feltman il 16 Lug 2019
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.

Accedi per commentare.

Più risposte (1)

Jordi Riba
Jordi Riba il 29 Ago 2012
Hallo Titus,
Thanks for the answer, it worked !!!
sorry for the late reply.
Jordi

Categorie

Scopri di più su Downloads in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by