GUI: Having trouble displaying data in table
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Peter Smith
el 5 de Sept. de 2019
Comentada: Peter Smith
el 5 de Sept. de 2019
So I have this pushbutton for loading data:
function loadfile_button_Callback(hObject, eventdata, handles)
feature_list = {'list', 'of', 'features'};
[Acontrol_data, Acontrol_labels, APD_data, APD_labels, compare_features, compare_activity] = check_data(handles.control_data, ...
handles.control_labels, handles.PD_data, handles.PD_labels, feature_list);
handles.Acontrol_data = Acontrol_data;
handles.Acontrol_labels = Acontrol_labels;
handles.APD_data = APD_data;
handles.APD_labels = APD_labels;
if(any(compare_features) || any(compare_activity))
handles.data_summmary = summarize_data(horzcat(Acontrol_data, APD_data));
guidata(hObject, handles);
set(handles.uitable1,'Data',handles.data_summary);
else
f = warndlg('Control and PD classes include different features. Please check spelling capitalization, as well as the Feature Activity cells.'...
,'Error');
end
I'd like to set uitable1 to display the matrix "data_summary". I keep getting the error:
Reference to non-existent field 'data_summary'.
Error in HRV_GUI>loadfile_button_Callback (line 222)
set(handles.uitable1,'Data',handles.data_summary);
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in HRV_GUI (line 38)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)HRV_GUI('loadfile_button_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Any advice? Thanks!
0 comentarios
Respuesta aceptada
Walter Roberson
el 5 de Sept. de 2019
handles.data_summmary = summarize_data(horzcat(Acontrol_data, APD_data));
handles.data_summmary . Three 'm'.
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!