[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


                 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
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows



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.

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));


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]