Effacer les filtres
Effacer les filtres

How to store data values from uitable

1 vue (au cours des 30 derniers jours)
James Hendren
James Hendren le 16 Août 2013
How would I go about storing data values typed into a uitable as globals or otherwise?

Réponses (1)

Walter Roberson
Walter Roberson le 16 Août 2013
DataCell = get(UitableHandle, 'Data');
global_variable_1 = DataCell{5,7}; %for example
  8 commentaires
James Hendren
James Hendren le 16 Août 2013
so how do I make it to where the user can edit the value?
Walter Roberson
Walter Roberson le 16 Août 2013
You should investigate the CellEditCallback property; see http://www.mathworks.com/help/matlab/ref/uitableproperties.html#brgcv4s
You would set it to the handle of a function; the function would execute when a cell is edited. In the function you would change the global variable.
You should consider alternatives.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by