| www.delorie.com/gnu/docs/octave/octave_159.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Octave has a limited set of functions for managing sets of data, where a set is defined as a collection unique elements.
create_set ([ 1, 2; 3, 4; 4, 2 ])
=> [ 1, 2, 3, 4 ]
|
union ([ 1, 2, 4 ], [ 2, 3, 5 ])
=> [ 1, 2, 3, 4, 5 ]
|
intersection ([ 1, 2, 3 ], [ 2, 3, 5 ])
=> [ 2, 3 ]
|
complement ([ 1, 2, 3 ], [ 2, 3, 5 ])
=> 5
|
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |