GUI: Having trouble displaying data in table
1 view (last 30 days)
Show older comments
Peter Smith
on 5 Sep 2019
Commented: Peter Smith
on 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!
0 Comments
Accepted Answer
Walter Roberson
on 5 Sep 2019
handles.data_summmary = summarize_data(horzcat(Acontrol_data, APD_data));
handles.data_summmary . Three 'm'.
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!