How to sum 3D matrix along 2 and 3 dimention
34 views (last 30 days)
Show older comments
There is 20x10x10 matrix how to sum all elements in the 2D slices along the 20 elements.
The end result should be 20x1 vector
B = ones(20,10,10);
0 Comments
Accepted Answer
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!