digitrevorder vs bitrevorder?

조회 수: 6 (최근 30일)
ABTJ
ABTJ 2020년 6월 18일
댓글: alelap 2024년 3월 20일
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?

답변 (1개)

Saurabh Kumar
Saurabh Kumar 2020년 6월 19일
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
alelap
alelap 2024년 3월 20일
"pemuterevorder" is unrecognized in MATLAB R2023b.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

제품


릴리스

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by