Add rows in uitable

1 回表示 (過去 30 日間)
as hz
as hz 2013 年 2 月 6 日
Hi,
The GUI I wrote generate the cData for every time I click a pushbutton.
cData = {complete; AInfo; BInfo; CInfo; DInfo};
set(handles.infoTable, 'data', cData);
Unfortunately, every time it is overwritten the row data. Therefore, how can I write the new cData in new rows?
Thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 6 日
cData = {complete; AInfo; BInfo; CInfo; DInfo};
old_data=get(handles.infoTable,'data');
new_data=[old_data;cData]
set(handles.infoTable, 'data',new_data);
  1 件のコメント
as hz
as hz 2013 年 2 月 6 日
Thanks again

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by