フィルターのクリア

how to make variables inside a timer function global?

1 回表示 (過去 30 日間)
debasish
debasish 2012 年 7 月 3 日
コメント済み: Diogo Milagres 2017 年 2 月 3 日
hi.. i have used a timer that gets a frame from an axes(a webcam is live fed into the axes).
t=timer('TimerFcn',['frame=get(get(handles.cameraAxes,''children''),''cdata'');'.....getting
'stop(handles.video);','imshow(frame);'...dsf
],'StartDelay',5);
start(t);
How to use the variable 'frame' in another function??.I have tried to update the handles, but it doesn't work.
Kindly help.
  1 件のコメント
Diogo Milagres
Diogo Milagres 2017 年 2 月 3 日
Use global frame in all functions that need it.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by