How do I Average across structure
Show older comments
I have a 14 subject structure (ERP_data.ERP_data); for each subject there is 3D matrix: 32(electrode) x 381(data) x 32(condition); I would like to average the data across subjects with nanmean, so the final matrix will be 32x381x32; thank you for you help!
R
3 Comments
madhan ravi
on 29 Aug 2018
Would you upload the data file/files and the code you tried?
madhan ravi
on 29 Aug 2018
Where’s the data file?
Rene Sebena
on 29 Aug 2018
Accepted Answer
More Answers (1)
Image Analyst
on 30 Aug 2018
0 votes
You can use mean() with the 'omitnan' option.
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!