summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/octave/files/octave-3.4.0-fftshift.patch')
-rw-r--r--sci-mathematics/octave/files/octave-3.4.0-fftshift.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch b/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch
new file mode 100644
index 000000000000..bf163dede1d2
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.4.0-fftshift.patch
@@ -0,0 +1,19 @@
+Reference: http://hg.savannah.gnu.org/hgweb/octave/rev/189baf055143
+
+diff -r e4dbfe3019b1 -r 189baf055143 scripts/signal/fftshift.m
+--- a/scripts/signal/fftshift.m Sat Feb 19 18:21:58 2011 -0800
++++ b/scripts/signal/fftshift.m Sun Feb 20 17:53:41 2011 -0800
+@@ -65,9 +65,9 @@
+ retval = x(idx{:});
+ else
+ if (isvector (x))
+- x = length (x);
+- xx = ceil (x/2);
+- retval = x([xx+1:x, 1:xx]);
++ xl = length (x);
++ xx = ceil (xl/2);
++ retval = x([xx+1:xl, 1:xx]);
+ elseif (ismatrix (x))
+ nd = ndims (x);
+ sz = size (x);
+