diff scripts/plot/util/findobj.m @ 30603:397d29f7135c

shift.m: Deprecate function in favor of circshift for Matlab compatibility. * NEWS: Announce deprecation. * scripts/deprecated/shift.m: Moved from scripts/general. Added warning about deprecation emitted on first usage. Added note to docstring that function is deprecated. * scripts/deprecated/module.mk: Add shift.m to build system. * scripts/general/module.mk: Remove shift.m from build system. * matrix.txi: Remove shift() from manual. * polyarea.m, __imread__.m, spinmap.m, findobj.m, treelayout.m, treeplot.m: Replace instances of shift() with circshift(). * strjust.m: Replace instance of "shift (" with "shift(" because the code is using indexing, not a function call.
author Rik <rik@octave.org>
date Thu, 06 Jan 2022 17:48:06 -0800
parents 796f54d4ddbf
children 29573bab8328
line wrap: on
line diff
--- a/scripts/plot/util/findobj.m	Thu Jan 06 14:23:03 2022 -0800
+++ b/scripts/plot/util/findobj.m	Thu Jan 06 17:48:06 2022 -0800
@@ -217,7 +217,7 @@
 
   numpairs = np - 1;
   if (! isempty (logicaloperator))
-    logicaloperator = shift (logicaloperator, 1);
+    logicaloperator = circshift (logicaloperator, 1);
   endif
 
   ## Load all objects which qualify for being searched.