Effacer les filtres
Effacer les filtres

How can I Autofill a Cell in a Table?

6 vues (au cours des 30 derniers jours)
John
John le 14 Juin 2012
I have placed a (3,1) table in a GUI and would like it to autofill the third cell with the same value the user added in the first cell. How can this be done?

Réponse acceptée

Walter Roberson
Walter Roberson le 14 Juin 2012
Set the uitable CellEditCallback property to a routine that checks the Indices field of the eventdata structure, and if the indices are [1 1] then get() the Data property of the uitable, and copy the eventdata New Value property to element {3,1} of that and set() that as the new Data property.

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by