uitable operation
6 次查看(过去 30 天)
显示 更早的评论
I want to perform the uitable operation as below:
1. Row first has 15 empty cells, row second has 15 empty cells and row three has 15 empty cells too.
2. In row 1st, I put a number in cell 1 and cell 6. In row 2nd, I put a number in cell 7. In row 3 still empty.
3. In row 1st, 2nd and 3rd, I need to put number 0 automaticly accept the filled cells before.
How this operation will code? I want to know the steps because really do not know how. Please help me.
0 个评论
采纳的回答
Walter Roberson
2011-11-2
data = cell(3,15);
data{1,1} = rand; data{1,6} = rand;
data{2,7} = rand;
data(cellfun(@isempty,data)) = 0;
uitable(..., 'Data', 'data');
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!