I have a matrix like thisA = [0 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1]and i want to count the number of 1's in each row every 5 numbersthe output will be 3 44 2Thank you :)
MATLAB: Count the number of 1 in each row
countmatrixnumbersrow
Best Answer