summaryrefslogtreecommitdiff
path: root/macros/digitrevorder.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/digitrevorder.sci')
-rw-r--r--macros/digitrevorder.sci3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/digitrevorder.sci b/macros/digitrevorder.sci
index 84041fc..cc9ecc2 100644
--- a/macros/digitrevorder.sci
+++ b/macros/digitrevorder.sci
@@ -32,6 +32,7 @@ function [y, i] = digitrevorder (x, r)
// y =
//
// i 3. 1. 6.i
+
funcprot(0);
[nargout, nargin] = argn() ;
@@ -54,6 +55,8 @@ function [y, i] = digitrevorder (x, r)
y(old_ind + 1) = x(i);
if (size(x,2)== 1)
y = y(:);
+ else
+ i = i.';
end
endfunction