How do i add more than one value in one cell in UItable?
11 次查看(过去 30 天)
显示 更早的评论
I have created a UItable in Matlab GUI .The table has 1 row and 6 columns.I want the 1st cell to have more than one value like a normal array(for ex: 0 100 200 300) .But as soon as i am adding more than one value,the contents of the cell turn to 'NAN'
Summarising - i am not able to add more than one value in one cell
Kindly help me with this.Any help will be appreciated.Kindly look at the pictures i have attached
0 个评论
采纳的回答
Walter Roberson
2018-4-19
The only way you can do that is by making the cell at text cell, in which case the spaces are just characters like any others. (If you wanted to use the numeric value equivalent to the characters you would need to convert to numeric afterwards.)
4 个评论
Walter Roberson
2018-4-19
Column_to_affect = 1;
T1(:,Column_to_affect) = cellfun(@num2str, T1(:,Column_to_affect), 'uniform', 0);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!