How to set a column element from a text array in uitable GUI
9 次查看(过去 30 天)
显示 更早的评论
I have a problem. I have created a Table, using Matlab GUI. And, in my uitable, I want to assign a column or a row elements from a text array in my m-file code. In my m-file, I created a array like;
a={'John';'Kevin';'Steffi'};
I have uploaded a picture which shows my situation and my simple gui application.
To sum up, I want to set 'Name' column's element to John, Kevin, Steffi; not all of them NaN.
Please, help me.

0 个评论
采纳的回答
KL
2017-11-10
Put all your table data in a cell array and then update them, not just one column.
data = {'John',12;'Kevin',46;'Steffi,23};
then if T is your uitable,
T.data = data;
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!