how to add a single element to a table in app designer ?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
this line adds one element to the first cell of the table (if the content is numeric)
app.UITable.Data = [app.UITable.Data(:);app.EditField2.Value];
otherwise for non numeric data
app.UITable.Data = [{app.UITable.Data{1}};app.EditField2.Value]
the question is: how could I fill in values for each variable separately? let's say I have different edit-boxes in the GUI and I want values taken from those fields to be put in a table row upon pressing a button ? I know I could make an array of all vars and then paste it as a row, however I have a mix of numeric and string variables so I cannot put them together (and I would not want to convert numbers to strings for this).
0 comentarios
Respuestas (1)
Sahithi Kanumarlapudi
el 25 de Ag. de 2020
Hi,
From your question, I have understood that you would like to add non-numeric data and numeric data into uitable. Referring to the following example might help you.
And you can access each cell of the table using the index in a similar way how you index a matrix. Referring to the answer posted in the following post might give you some insight
0 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!