Guest User

Untitled

a guest
Aug 18th, 2019
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = [1 2 3 4; 2 3 4 5]
  2. b = reshape (sum (reshape (a.', 2, [])), [], rows(a)).'
  3.  
  4. b =
  5.  
  6. 3 7
  7. 5 9
RAW Paste Data