Averaging Every Element of some matrices
Show older comments
I have 40 matrices of 12x1. How can I take the the each element of every matrix and get a averaged matrix which will be 12x1
1 Comment
Stephen23
on 7 Oct 2020
See follow-up question here:
Accepted Answer
More Answers (1)
KSSV
on 6 Oct 2020
Read about mean. You can specify your required dimension to get the mean along.
A = rand(12,1,40) ;
M = mean(A,3) ;
1 Comment
Joydeb Saha
on 7 Oct 2020
Categories
Find more on Logical 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!