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.
2275 Solvers
Getting the absolute index from a matrix
213 Solvers
Given a matrix, swap the 2nd & 3rd columns
546 Solvers
Number of digits in an integer
342 Solvers
1345 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!