Changing elements of row after certain element
1 view (last 30 days)
I have a m*n matrix where some of rows are like these for exmaple
Now I need to make new row as follows
that is once any of the elements in row becomes 1 after that all the elements will be zero.