comparison scripts/set/unique.m @ 27235:e12571df6466

doc: Update description of "legacy" option for set functions. * intersect.m, union.m, unique.m: Update description of "legacy" option.
author Rik <rik@octave.org>
date Thu, 11 Jul 2019 13:31:23 -0700
parents c80681b4948d
children d29a12e8b6d9
comparison
equal deleted inserted replaced
27234:279074d7a3b9 27235:e12571df6466
41 ## @qcode{"first"} or @qcode{"last"} may be given. If @qcode{"last"} is 41 ## @qcode{"first"} or @qcode{"last"} may be given. If @qcode{"last"} is
42 ## specified, return the highest possible indices in @var{i}, otherwise, if 42 ## specified, return the highest possible indices in @var{i}, otherwise, if
43 ## @qcode{"first"} is specified, return the lowest. The default is 43 ## @qcode{"first"} is specified, return the lowest. The default is
44 ## @qcode{"first"}. 44 ## @qcode{"first"}.
45 ## 45 ##
46 ## Programming Note: The input flag @qcode{"legacy"} changes the default 46 ## Programming Note: The input flag @qcode{"legacy"} changes the algorithm
47 ## to @qcode{"last"}, and the shape of the outputs @var{i}, @var{j} will follow 47 ## to be compatible with @sc{matlab} releases prior to R2012b. Specifically,
48 ## the shape of the input @var{x} rather than always being column vectors. 48 ## The index ordering flag is changed to @qcode{"last"}, and the shape of the
49 ## outputs @var{i}, @var{j} will follow the shape of the input @var{x} rather
50 ## than always being column vectors.
49 ## 51 ##
50 ## @seealso{union, intersect, setdiff, setxor, ismember} 52 ## @seealso{union, intersect, setdiff, setxor, ismember}
51 ## @end deftypefn 53 ## @end deftypefn
52 54
53 function [y, i, j] = unique (x, varargin) 55 function [y, i, j] = unique (x, varargin)