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 Exchange에서 Tables에 대해 자세히 알아보기

제품

릴리스

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