Add new rows to Table (GUI uitable)
34 次查看(过去 30 天)
显示 更早的评论
Hey guys! After some research, I still can't find the solution for my problem. I have a table that it's filled with info from user, when a button is pushed. The idea is that once new information is inserted and the "add" button pushed, a new row is created on the table and the info copied there, without deleting/overwrite previous data.
Does any of you have a suggestion?? Your help is very much appreciated!
Thanks! BS.
4 个评论
Jan
2013-7-4
The linked thread is totally unrelated to the topic of uitable. Therefore we cannot guess, how you try to write to the 2nd row. Please post your code instead of hoping, that we have crystal balls ;-)
采纳的回答
Tom
2013-7-4
%hTable: handle to the table
%newRow : the row of data you want to add to the table.
oldData = get(hTable,'Data');
newData = [oldData; newRow];
set(hTable,'Data',newData)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Condensed Matter & Materials Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!