How can I save a counter after push button in GUI ?
Show older comments
Hi ! I have this code :
function pushbutton_callback(src,event,data)
data.handles.A = [data.handles.A; data.handles.I];
end
and I would like to save my counter in data.handles.A every time I push the button but it is telling me that I have 'Not enough input arguments.' Do you know how to solde this problem ?
Accepted Answer
More Answers (1)
ES
on 9 Nov 2017
You have sto store this data the gui handles. You can do this by inserting
data.handles.A = [data.handles.A; data.handles.I];
% Update handles structure
guidata(hObject, handles);
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!