Calling data based on column name

16 次查看(过去 30 天)
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?

采纳的回答

Seth Furman
Seth Furman 2021-3-18
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 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by