Hi,
I suggest you use i as variable in this fashion:
- declare i in the OpeningFcn:
handles.i = 0
- in the callback:
disp(handles.i);
handles.i=handles.i+1;
% Update handles structure
guidata(hObject, handles);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!