I'm making a GUI and i have to show a image every second. I create a timer to do so in opening function from the GUI like this:
handles.tempo = timer;
handles.tempo.ExecutionMode = 'FixedSpacing';
handles.tempo.StartDelay = 5;
set(handles.tempo, 'TimerFcn', {@myphoto_Callback, handles})...