How can I save the data from editbox to uitable

조회 수: 2 (최근 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 CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by