MATLAB Answers

View content of cell array in App designer

4 views (last 30 days)
Alexandre Chalard
Alexandre Chalard on 29 Oct 2020
Answered: Mario Malic on 29 Oct 2020
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

Sign in to comment.

Answers (1)

Mario Malic
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!