View content of cell array in App designer
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
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.
0 comentarios
Ver también
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!