I have a matrix that is 400×95. I would like to sum all the negative values in each column and divide this by the sum of all the positive values in the same column to yield a new vector that is essentially 1×95. Any help is much appreciated!
MATLAB: Sum all negative values in a matrix
sum negative valuessum positive values
Best Answer