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,

 Accepted Answer

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

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!