Creating means in a table for a specific subnum

Hi,
I have a table with 10 variables and 3 other descriptor variables (Subnum, Condition [2], Trial [4]). So each condition has 4 trials. I want to create means across trials per Subnum. So it would be 20 means per Subnum [2 per each variable becasue of the 2 conditions]. I would be perfect if I can create 2 seperate matricies per Subnum with a row of 10 means since I have to input that variable into another script. I'm new to MATLAB so I appreciate any help.
Thanks,

 Respuesta aceptada

the cyclist
the cyclist el 18 de Ag. de 2019

0 votos

I think you might be able to do what you want using the groupsummary function.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 18 de Ag. de 2019

Respondida:

el 18 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by