필터 지우기
필터 지우기

how to add new data to matlab uitable that old data and data that has been updated to appear in matlab uitable?

조회 수: 4 (최근 30일)
Hi,
how to add new data to matlab uitable that old data and data that has been updated to appear in matlab uitable?
Thanks a lot
Best regards.

답변 (2개)

ES
ES 2013년 10월 9일
To append, read data from uitable using
get method, append the new data in your code, set the data again by using the
set method.
and Duplicate Question.

matlablearner
matlablearner 2014년 7월 25일
Hi,
Before you set the Data of the uitable, get the previous data and concatenate it with the new data
existingData = get(handles.uitable,'Data'); % Get the existing data
newData = [existingData; newdata]; % Append the data
set(handles.uitable,'Data',newData); % Set the appended data to the table.
Hope it helps.

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by