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.
10137 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
328 Solvers
Simple equation: Annual salary
3801 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
301 Solvers
Sum of odd numbers in a matrix
320 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!