Using timer to run a user-defined function periodically in GUI to plot graph
Ältere Kommentare anzeigen
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
Antworten (1)
Daniel Shub
am 10 Okt. 2011
0 Stimmen
You need to pass handles.axes to the timer function. There are a number of ways of doing this. Check the FAQ:
1 Kommentar
Michael Lem
am 13 Okt. 2011
Kategorien
Mehr zu Specifying Target for Graphics Output finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!