フィルターのクリア

how to get the Location of a box inside uitable (table), which is highlighted?

3 ビュー (過去 30 日間)
joe
joe 2018 年 1 月 10 日
コメント済み: joe 2018 年 1 月 10 日
hi everyone,
i have a table inside GUI and i want to get the coordinates of box in the table which is highlighted.
for exemple:
Table is (4x4) cell
i clicked on a box, which is located in table (2,3).
now how i can get the Location, which is highlighted?
any help i will i appreciate it
  1 件のコメント
joe
joe 2018 年 1 月 10 日
Hello everyone,
i solved it.
and here is the solution:
% write in table_CellSelectionCallback
function table__CellSelectionCallback(hObject, eventdata, handles)
row = eventdata.Indices(1);
col = eventdata.Indices(2);
assignin('base','row',row) % to get row variable in workspace
assignin('base','col',col) % to get col variable in Workspace
guidata(hObject,handles);

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by