How to call a function only when Matlab is not busy

I have a GUI that needs to run a function if an input file changes.
The GUI has a timer that calls a function "checkfiles" to regularily check for any changes in the input file meta data.
However, I only want this function to execute if the GUI is not busy with other tasks (I want to postpone checkfiles until Matlab becomes un-busy).
Is there a way to call the function only if Matlab is not busy?

Answers (0)

Categories

Find more on Historical Contests in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 8 Nov 2019

Commented:

on 9 Nov 2019

Community Treasure Hunt

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

Start Hunting!