coordinate element in table box

回答(1 个)

Hi Luca,
I understand that you want to determine the position of a cell within a table in App Designer. It can be done by using the ‘CellSelectionCallback’ property of the ‘uitable’.
You can refer to the code snippet below for obtaining the location:
% Cell selection callback: UITable
function UITableCellSelection(app, event)
indices = event.Indices;
row = indices(1, 1);
col = indices(1, 2);
end
I hope this helps.

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

提问:

2023-12-5

编辑:

2023-12-15

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by