I have a 189 x 4914 matrix and am trying to find the sum of each row in each 1x26 sub-matrix. How would I go about this?
Many thanks.
I have a 189 x 4914 matrix and am trying to find the sum of each row in each 1x26 sub-matrix. How would I go about this?
Many thanks.
Try this:
You can look at intermediate results to see how this works:
reshape(x.', n, [])
, thensum(reshape(x.', n, []), 1)
etc