any way of processing callbacks without updating figures?

18 vues (au cours des 30 derniers jours)
Glenn Kubota
Glenn Kubota le 9 Jan 2026 à 20:28
Réponse apportée : Stephen23 il y a environ 24 heures
Is there any way of processing callbacks without updating the figures? I know that drawnow can update the figures without processing callbacks, but is there some way of doing the opposite? In the code I'm writing, the callbacks are important and need to be handled regularly, but updating the figures is lower priority. I also tried pause(0), but I didn't see any difference between that and drawnow.

Réponses (1)

Stephen23
Stephen23 il y a environ 15 heures

Callback functions are just functions, there is nothing magical about them: you can call them from other functions, scripts, classes, etc just like you would any other function. So to "regularly" process the functions you can call them in a loop or use a timer or something of that ilk.

Pay careful attention to the required and optional input arguments!

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits


Version

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by