Adding values to a table using a pushbutton
Mostra commenti meno recenti
Hello, I am worked on a project in school. I have created two GUIs and I have one of them containing a table and a pushbutton which the user will use to edit the values of the table. When the user clicks on the pushbutton, the second GUI is called and it has edit text field to receive the required information from the user. Afterwards the user presses the add pushbutton on the same GUI and the data should be sent to the table. I have been able to use Tag and Guidata to called the handles from the gui with the table and but I do not know how to get the data into the table when the button is clicked. Please help me, Thank you
Risposta accettata
Più risposte (1)
george
il 11 Nov 2014
0 voti
2 Commenti
Geoff Hayes
il 11 Nov 2014
George - your question here shouldn't be posed as an answer to your original question as it makes it confusing for others. You should create a new question posting code that you have written, describing the unexpected results and those that you wish to have. That being said, look at the line tableData = [tableData ; ....]; which adds a row to the previous data stored in the table. That line, and the one that follows are used to update the table.
Categorie
Scopri di più su Tables in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!