GUI: Having trouble displaying data in table

1 Ansicht (letzte 30 Tage)
Peter Smith
Peter Smith am 5 Sep. 2019
Kommentiert: Peter Smith am 5 Sep. 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!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Sep. 2019
handles.data_summmary = summarize_data(horzcat(Acontrol_data, APD_data));
handles.data_summmary . Three 'm'.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by