View content of cell array in App designer

3 ビュー (過去 30 日間)
Alexandre Chalard
Alexandre Chalard 2020 年 10 月 29 日
回答済み: Mario Malic 2020 年 10 月 29 日
Hello,
Within the app designer, I am trying to display a UItable containing data from a structure, different fields of the structure contains cell array. When making a double click on the cell array, I wish to display the content of the cell in an other window (as we can do in the workspace). I tried to set the ColumnEditable options to true but nothing happen when I am trying to open the cell.
Any idea ?
Thank you

回答 (1 件)

Mario Malic
Mario Malic 2020 年 10 月 29 日
You can use the CellSelection callback, you can get indices of the table and use it to display it in the other window.
% Cell selection callback: UITable
function UITableCellSelection(app, event)
indices = event.Indices;
Cell_Data = app.UITable.Data{indices(1), indices(2)}
end
Use Cell_Data to display it in the other window. You can set it as an app property to share it easier.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by