GUI: Having trouble displaying data in table

4 ビュー (過去 30 日間)
Peter Smith
Peter Smith 2019 年 9 月 5 日
コメント済み: Peter Smith 2019 年 9 月 5 日
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!

採用された回答

Walter Roberson
Walter Roberson 2019 年 9 月 5 日
handles.data_summmary = summarize_data(horzcat(Acontrol_data, APD_data));
handles.data_summmary . Three 'm'.
  1 件のコメント
Peter Smith
Peter Smith 2019 年 9 月 5 日
ah, duh. Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by