I've got logical array(zeros and ones) 1500x700

I want to find "1" in every column and when there are more than one "1" in column i should choose the middle one.

Is that possible to do it? I know how to find "1", but don't know how to extract the middle "1" if there's couple of "1" in one column.