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: Thu, 15 Mar 2018 18:11:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Follow-up Comment #2, bug #53178 (project octave):

This change to circshift.m allows a scalar "n" argument that acts along the
first non-singleton dimension.

++
66c66,69
<   if (nargin == 3)
---
>   nd = ndims (x);
>   sz = size (x);
> 
>   if (nargin == 3 || isscalar(n))
68a72,74
>     else
>         ## Find the first non-singleton dimension.
>         (dim = find (sz > 1, 1)) || (dim = 1);
72,74d77
< 
<   nd = ndims (x);
<   sz = size (x);
--

    _______________________________________________________

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]