I have a 150 by 300 binary matrix. I would like to sum the 1's for each individual row (from left to right) until the first zero is encountered. For example, if a given row is 1 1 1 1 1 1 0 0 0 1 0 0 ...
0 Comment to "How to find the sum for each individual row in a binary matrix until the first zero is reached from left to right. – mathematica.stackexchange.com"
0 Comment to "How to find the sum for each individual row in a binary matrix until the first zero is reached from left to right. – mathematica.stackexchange.com"
Post a Comment