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.
Magic is simple (for beginners)
2749 Solvers
284 Solvers
Celsius to Fahrenheit converter
388 Solvers
187 Solvers
Flip the vector from right to left
2666 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!