as here we have to compare 1st two bits only, we are taking 1st two bits by a(1:2), means values of a starting from 1st position to 2nd position.
First non-zero element in each column
593 Solvers
464 Solvers
372 Solvers
358 Solvers
555 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!