Calling data based on column name
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kyle Koutonen
le 14 Mar 2021
Réponse apportée : Seth Furman
le 18 Mar 2021
Say In matlab app designer in a table app.UITable1 and i want to calculate the mean of certain column based off the name I type into a edit feild (text) that matched with a column name of a table, who would i accomplish this?
0 commentaires
Réponse acceptée
Seth Furman
le 18 Mar 2021
You could do something like
mean(t{:,varName})
where t is your UI table data (assuming it is represented as a table type) and varName is the variable name.
Take a look at this link for more on how to access table data.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer 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!