4

Is it possible in matlab to call a function when the program I'm running is idle? I don't want this to be a parallel process. Also, I would prefer a solution where I could pause and resume the function when the main program has to run again. Kind of like an interrupt in embedded systems, in my case the main program is the interrupt.

how would I do this?

1
  • I don't fully understand your question, but you can pause execution using pause on; pause... Don't know if this helps... Commented Jul 10, 2012 at 7:34

1 Answer 1

0

you could use a timer object to start / stop the second function. see the matlab documentation. See also this mathworks blog entry.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.