digitrevorder vs bitrevorder?

Apparently both commands are doing same job of reversing input but what is difference between both?especially in regards to applications? In which application scenarios do we use bitrevorder and in which scenarios do we use digitrevorder?

Respuestas (1)

Saurabh Kumar
Saurabh Kumar el 19 de Jun. de 2020

1 voto

Digitrevorder and pemuterevorder have quite different functionalities.
digitrevorder is to permute data into digit reversed order whereas bitrevorder is used to permute data into bit reversed order.
Example :
a=(0:15)';
y=bitrevorder(a)
b=(0:8)';
z=digitrevorder(b,3)
%Output
y =
0
8
4
12
2
10
6
14
1
9
5
13
3
11
7
15
z =
0
3
6
1
4
7
2
5
8

1 comentario

alelap
alelap el 20 de Mzo. de 2024
"pemuterevorder" is unrecognized in MATLAB R2023b.

Iniciar sesión para comentar.

Productos

Versión

R2011b

Preguntada:

el 18 de Jun. de 2020

Comentada:

el 20 de Mzo. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by