Retrieve data from uitable when user enters data
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kyriaki Mylonas
le 21 Août 2018
Commenté : Kyriaki Mylonas
le 21 Août 2018
Hello guys! I try to create a uitable for the user to insert values. When the user closes the window, the program must take the inputs and create a matrix. I wrote that: f=figure(1); t=uitable(f); t.ColumnEditable=true; d={'ACCP',0;'AIR',0;'AIRP',0;'ATOS',0}; t.Data = d; waitfor(gcf); datamatrix=get(t,'Data'); and I get this error: Error using matlab.ui.control.Table/get Invalid or deleted object. Please help me! Thank you
0 commentaires
Réponse acceptée
M
le 21 Août 2018
You should handle the deletion of the table properly as explained here:
With this example you can retrieve the data when the figure is closed, you can adapt it to retrieve the data whenever the user enter a new value.
Plus de réponses (0)
Voir également
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!