Using timer to run a user-defined function periodically in GUI to plot graph
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Daniel Shub
2011-10-10
You need to pass handles.axes to the timer function. There are a number of ways of doing this. Check the FAQ:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!