Effacer les filtres
Effacer les filtres

Using timer to run a user-defined function periodically in GUI to plot graph

1 vue (au cours des 30 derniers jours)
Michael Lem
Michael Lem le 10 Oct 2011
I made a GUI for my project. When I press start push button a timer should start interrupting every 1 second. It will execute a function named "GraphADCdata.m" each second. i want the graph to be plotted in Axe1, but i cant use "plot(handles.axes, x, y)" cause i don't have access to handles variable.
What should I do?
regards, Michael

Réponses (1)

Daniel Shub
Daniel Shub le 10 Oct 2011
You need to pass handles.axes to the timer function. There are a number of ways of doing this. Check the FAQ:
  1 commentaire
Michael Lem
Michael Lem le 13 Oct 2011
i almost read all of it... i still have no idea, how i can pass handles.axes to my function...
How do i do it?
Michael

Connectez-vous pour commenter.

Catégories

En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by