How can i share data between callbacks in GUI effectively ?

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Image Analyst
Image Analyst el 4 de Jul. de 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.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by