www.gusucode.com > signal 案例源码程序 matlab代码 > signal/VectorInBitReversedOrderExample.m

    %% Vector in Bit-Reversed Order
% Create a column vector and obtain its bit-reversed version. Verify by
% displaying the binary representation explicitly.

%%

x = (0:15)';
v = bitrevorder(x);

x_bin = dec2bin(x);
v_bin = dec2bin(v);

T = table(x,x_bin,v,v_bin)