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

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

[Octave-bug-tracker] [bug #53178] Circshift incompatibility with MATLAB


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #53178] Circshift incompatibility with MATLAB
Date: Sat, 17 Feb 2018 10:00:23 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

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

                 Summary: Circshift incompatibility with MATLAB
                 Project: GNU Octave
            Submitted by: octavebugs
            Submitted on: Sat 17 Feb 2018 03:00:22 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WTF, Matlab?!?
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

With a vector input and singleton shift argument, MATLAB always shifts whereas
Octave respects the dimension.

MATLAB 2017a

>> x=1:4

x =

     1     2     3     4

>> circshift(x,1)

ans =

     4     1     2     3

>> circshift(x',1)

ans =

     4
     1
     2
     3



Octave 4.2.1

>> x=1:4
x =

   1   2   3   4

>> circshift(x,1)
ans =

   1   2   3   4

>> circshift(x',1)
ans =

   4
   1
   2
   3





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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