sum of several matrix

Status
Not open for further replies.

ssaber

Newbie level 3
Joined
Feb 20, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Hello everyone,
i have several matrix (4*4)
for example

Kij,:,1)=[1 2 3 4 ; 1 4 6 7; 1 6 7 8 ; 5 5 5 4]
Kij,:,2)=[1 1 1 4 ; 1 1 6 1; 1 1 7 8 ; 1 5 1 1]
Kij,:,3)=[1 3 3 4 ; 1 3 6 1; 3 1 3 8 ; 3 5 1 1]

and i want to get sum of them
namely
kij=[3 6 7 12;3 8 18 9;5 8 17 24;9 15 7 6]
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…