View content of cell array in App designer

13 visualizaciones (últimos 30 días)
Alexandre Chalard
Alexandre Chalard el 29 de Oct. de 2020
Respondida: Mario Malic el 29 de Oct. de 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

Respuestas (1)

Mario Malic
Mario Malic el 29 de Oct. de 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.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by