Octave has a limited set of functions for managing sets of data, where a set is defined as a collection unique elements.
@anchor{doc-create_set}
create_set ([ 1, 2; 3, 4; 4, 2 ]) => [ 1, 2, 3, 4 ]
@seealso{union, intersection, and complement}
@anchor{doc-union}
union ([ 1, 2, 4 ], [ 2, 3, 5 ]) => [ 1, 2, 3, 4, 5 ]
@seealso{create_set, intersection, and complement}
@anchor{doc-intersection}
intersection ([ 1, 2, 3 ], [ 2, 3, 5 ]) => [ 2, 3 ]
@seealso{create_set, union, and complement}
@anchor{doc-complement}
complement ([ 1, 2, 3 ], [ 2, 3, 5 ]) => 5
@seealso{create_set, union, and intersection}
Go to the first, previous, next, last section, table of contents.