How to do sum for 3D matrix using for loop

I have 3D matrix with size (2501*90*5). Now I awnt to sum using for loop by taking 2D matrix 2501*90 for 5 times. Like, first it will start with taking 2501*90 *1 and do sum and so on.
How to do that.
Please help me to solve this.

2 Comments

Do you want to add all (5) 2501*90 matrices? Or perform any other sum operation?
Thanks for replying. Its done.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

AS
on 13 Sep 2022

Commented:

AS
on 13 Sep 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!