Kevin
2006-11-25 05:33:10 UTC
Is there a fast way (or vectorized code) of doing bit reversal in
Matlab?
For example, if number of bits is 4, then bit reversal of 1 is 8.
This problem can get tricky when the number of bits is large (eg.
40). Doing any math with such a big number can lead to precision
problem?
I know that I can use BITGET and BITSET. But I am wondering if there
is a better way.
Thanks.
Matlab?
For example, if number of bits is 4, then bit reversal of 1 is 8.
This problem can get tricky when the number of bits is large (eg.
40). Doing any math with such a big number can lead to precision
problem?
I know that I can use BITGET and BITSET. But I am wondering if there
is a better way.
Thanks.