How can i share data between callbacks in GUI effectively ?

2 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2018-7-4
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 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by