Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [1 2 3 4; 2 3 4 5]
- b = reshape (sum (reshape (a.', 2, [])), [], rows(a)).'
- b =
- 3 7
- 5 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement