View content of cell array in App designer
13 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Mario Malic
on 29 Oct 2020
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.
0 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!