bitrevorder
is useful for prearranging filter
coefficients so that bit-reversed ordering does not have to be performed as part of an
fft
or ifft
computation.
Bit-reversed ordering can improve run-time efficiency for external applications or for
Simulink® blockset models. Both MATLAB
fft
and ifft
functions process linear input and output.
Note
Using bitrevorder
is equivalent to using digitrevorder
with radix base 2.
This table shows the numbers 0 through 7, the corresponding bits, and the bit-reversed
numbers.
Linear Index | Bits | Bit-Reversed | Bit-Reversed Index |
---|
0 | 000 | 000 | 0 |
1 | 001 | 100 | 4 |
2 | 010 | 010 | 2 |
3 | 011 | 110 | 6 |
4 | 100 | 001 | 1 |
5 | 101 | 101 | 5 |
6 | 110 | 011 | 3 |
7 | 111 | 111 | 7 |