Set the uitable CellEditCallback property to a routine that checks the Indices field of the eventdata structure, and if the indices are [1 1] then get() the Data property of the uitable, and copy the eventdata New Value property to element {3,1} of that and set() that as the new Data property.
How can I Autofill a Cell in a Table?
2 次查看(过去 30 天)
显示 更早的评论
I have placed a (3,1) table in a GUI and would like it to autofill the third cell with the same value the user added in the first cell. How can this be done?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!