MATLAB Answers

Creating means in a table for a specific subnum

1 view (last 30 days)
Edward Lannon
Edward Lannon on 18 Aug 2019
Answered: the cyclist on 18 Aug 2019
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,

  0 Comments

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 18 Aug 2019
I think you might be able to do what you want using the groupsummary function.

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!