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

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

回答 (1 件)

Daniel Shub
Daniel Shub 2011 年 10 月 10 日

0 投票

You need to pass handles.axes to the timer function. There are a number of ways of doing this. Check the FAQ:

1 件のコメント

Michael Lem
Michael Lem 2011 年 10 月 13 日
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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSpecifying Target for Graphics Output についてさらに検索

質問済み:

2011 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by