Using timer to run a user-defined function periodically in GUI to plot graph
조회 수: 2 (최근 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에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!