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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 3 月 14 日

回答済み:

2021 年 3 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by