means of the 3rd dimension of a matrix
7 views (last 30 days)
Show older comments
AA = rand(3) I want a 2d matrix BB containing means of 3rd dimension of matrix A How I can do this smartly? Thanks
3 Comments
Accepted Answer
Walter Roberson
on 21 Oct 2013
BB = mean(A, 3);
2 Comments
Walter Roberson
on 21 Oct 2013
std(A,0,3)
As could be determined by looking at the documentation for std()
More Answers (0)
See Also
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!