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

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

Sorry that logic was busted, trying to be clever. This is a simpler fix for
scalar "n" arguments.

diff circshift.m circshift_new.m

< function y = circshift (x, n, dim)
---
> function y = circshift_new (x, n, dim)
75a76,81
>   if (isscalar (n))
>     ## Find the first non-singleton dimension.
>     (dim = find (sz > 1, 1)) || (dim = 1);
>     n = [zeros(1, dim-1), n];
>   end
>   


    _______________________________________________________

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]