Calling data based on column name

18 visualizaciones (últimos 30 días)
Kyle Koutonen
Kyle Koutonen el 14 de Mzo. de 2021
Respondida: Seth Furman el 18 de Mzo. de 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?

Respuesta aceptada

Seth Furman
Seth Furman el 18 de Mzo. de 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.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by