Next: Polynomial Manipulations, Previous: Financial Functions, Up: Top
Octave has a limited set of functions for managing sets of data, where a set is defined as a collection unique elements.
Return a row vector containing the unique values in x, sorted in ascending order. For example,
create_set ([ 1, 2; 3, 4; 4, 2 ]) => [ 1, 2, 3, 4 ]See also: union, intersection, complement.
Return the set of elements that are in either of the sets x and y. For example,
union ([ 1, 2, 4 ], [ 2, 3, 5 ]) => [ 1, 2, 3, 4, 5 ]See also: create_set, intersection, complement.