MATLAB Answers

0

Creating means in a table for a specific subnum

Asked by Edward Lannon on 18 Aug 2019
Latest activity Answered by 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.

Tags

1 Answer

Answer by the cyclist
on 18 Aug 2019
 Accepted Answer

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

  0 Comments

Sign in to comment.