Add rows in uitable
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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);
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!