<< random_subset Sets subset_of >>

Scilab Scholar module for schools >> Sets > remove

remove

removes an element from a set

Calling sequence

set2 = remove(e,set1)

Arguments

e

character string

set1

set

set2

set

Description

The function remove creates a new set set2 which is the set set1 from which is removed the element e (a character string).

Note that if the element e does not belong to the set set1, the set obtained set2 is the same as the set set1.

Examples

set1=define_set("a","b","c")
set2=remove("b",set1)
set2=remove("toto",set1)

See Also

<< random_subset Sets subset_of >>