diff options
Diffstat (limited to 'macros/bitrevorder.sci~')
-rw-r--r-- | macros/bitrevorder.sci~ | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/macros/bitrevorder.sci~ b/macros/bitrevorder.sci~ deleted file mode 100644 index 86f6a35..0000000 --- a/macros/bitrevorder.sci~ +++ /dev/null @@ -1,25 +0,0 @@ -function [y,i]=bitrevorder(x) - -// Returns input data in bit-reversed order -// Calling Sequence -// [y,i]=bitrevorder(x) -// Parameters -// x: Vector of real or complex values -// Description -// This is an Octave function. -// This function returns the input data after reversing the bits of the indices and reordering the elements of the input array. -// Examples -// 1. [y]=bitrevorder ([i,1,3,6i]) -// y = [0 + 1i 3 + 0i 1 + 0i 0 + 6i] -// 2. [y,i]=bitrevorder (['a','b','c','d']) -// y = acbd -// i = [1 3 2 4] - -funcprot(0); -[lhs,rhs]=argn(0); -if (rhs<1) then - error ("Wrong number of input arguments.") -end -[y,i]=callOctave("bitrevorder",x) -end -endfunction |