octave-bug-tracker
[Top][All Lists]

## [Octave-bug-tracker] [bug #52758] signal-1.3.2 -> fracshift(x, d) don't

 From: anonymous Subject: [Octave-bug-tracker] [bug #52758] signal-1.3.2 -> fracshift(x, d) don't shift, if d is an integer Date: Thu, 28 Dec 2017 17:23:10 -0500 (EST) User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

```URL:
<http://savannah.gnu.org/bugs/?52758>

Summary: signal-1.3.2 -> fracshift(x,d) don't shift, if d is
an integer
Project: GNU Octave
Submitted by: None
Submitted on: Thu 28 Dec 2017 10:23:09 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Klaus
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows

_______________________________________________________

Details:

If x is a row vector (most used) then fracshift(x,d) is redirected to
circshift(x,d), but with a row vector the current code doesn't work. A working
code for row vectors is: circshift(x,d,2). I don't know if other input vectors
or matrices have to be considered.
Example:

d = randint (1, 1000,[-1,1]);

#dd = circshift(d,3,2);   %works
dd = fracshift(d,3);      %doesn't work
#dd = fracshift(d,3.01);  %works

[acor, lag] = xcorr(d,dd);
plot (lag, abs(acor));
xlim([-5,5]);

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?52758>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/

```

reply via email to