Finding column index of the first instance of 1
2 次查看（过去 30 天）
I have a logical array like this:
I want to extrat the colum index of the cells where the first instance of 1 is detected. Like this:
For example, you see here that the first two rows show 4, because that is where 1 is first detected.