How can i share data between callbacks in GUI effectively ?
2 views (last 30 days)
Show older comments
I have GUI which has uitable to display data. When I make changes to the table data using celleditcallback, I get this error if I use the steps shown by code below, A Is data array
Reference to non-existent field 'A'. Error in Student_Academi_Data>uitable1_CellEditCallback (line 2178) A = handles.A Error in gui_mainfcn (line 95) feval(varargin{:}); Error in Student_Academi_Data (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Student_Academi_Data('uitable1_CellEditCallback',hObject,eventdata,guidata(hObject)) Error while evaluating Table CellEditCallback
0 Comments
Accepted Answer
Image Analyst
on 4 Jul 2018
There is a thorough discussion in the FAQ: https://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F so I won't repeat it here.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps 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!