how to make variables inside a timer function global?

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.

Respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Jul. de 2012

Comentada:

el 3 de Feb. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by