[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:14:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #3, bug #53178 (project octave):
The diff was kind of terse! ;) In context:
++
nd = ndims (x);
sz = size (x);
if (nargin == 3 || isscalar(n))
if (! isscalar (n))
error ("circshift: N must be a scalar when DIM is also specified");
else
## Find the first non-singleton dimension.
(dim = find (sz > 1, 1)) || (dim = 1);
endif
n = [zeros(1, dim-1), n];
endif
--
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53178>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/