GUI: Having trouble displaying data in table

4 vues (au cours des 30 derniers jours)
Peter Smith
Peter Smith le 5 Sep 2019
Commenté : Peter Smith le 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!

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by