フィルターのクリア

How can I save the data from editbox to uitable

1 回表示 (過去 30 日間)
CHETHAN S
CHETHAN S 2016 年 1 月 19 日
編集済み: Walter Roberson 2016 年 1 月 19 日
I want to save the data entered in editbox to uitable , and store the successive data in uitable (i.e.,every time when I enter the data in editbox must be saved in same uitable one by one).

採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 19 日
this_string = get(hObject, 'String');
current_data = get(handles.uitable1, 'data');
if ~iscell(current_data)
current_data = num2cell(current_data);
end
current_data{end+1,1} = this_string;
set(handles.uitable1, 'Data', current_data);
  1 件のコメント
CHETHAN S
CHETHAN S 2016 年 1 月 19 日
編集済み: Walter Roberson 2016 年 1 月 19 日
Thank you very much. It helped a lot

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by