Enter data into GUI table
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Peter
le 11 Juin 2013
Commenté : Faith McColl
le 22 Juil 2015
I created a GUI table with tag "table_handle" using GUIDE. Now how can I enter data into that table? According to the examples, I should be able to use uitable(handles.table_handle, 'Data', dataMatrix), where dataMatrix is the data that I want to enter into the table. However, I get the error undefined function or variable 'table_handle'.
If I replace handles.table_handle with gcf, the table is plopped in the middle of my current window; at least it displays, but I need it to be displayed in it's preset location.
Another problem that I have is that I can not change the default size of the table. In GUIDE, when I open "property inspector", "Data", it shows that there are four rows. If I delete the last three and hit apply, those rows just come back. How can I choose my own dimensions for this table?
thanks.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 11 Juin 2013
It should be
set(handles.table_handle, 'Data', dataMatrix)
6 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Import and Management 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!