<< CL_sec2hms Utilities CL_sortMat >>

celestlab >> Utilities > CL_setdiff

CL_setdiff

CelestLab version of setdiff function.

Calling Sequence

[a, ka] = CL_setdiff(a, b [, orien])

Description

Parameters

a, b:

vectors, matrices or hypermatrices of real numbers or encoded integers or strings. Both must have the same data types (and integer types). If the option orien="r" is used, a and b must have the same number of columns. If the orien="c" is used, they must have the same number of rows.

orien:

oriented processing: "r": rows of a are searched among b ones. "c": columns of a are searched among b ones. no orien: elements of a are searched among b ones.

a:

sorted vector of a's components that are not in b. orien="r": matrix of rows of a that are not in b, sorted in lexicographic order. orien="c": matrix of columns of a that are not in b, sorted in lexicographic order.

ka:

vector of linear indices of selected a's components, rows, or columns, such that: v = a(ka), or v = a(ka,:) (orien="r"), or v = a(:,ka) (orien="c")

Authors

Examples

CL_setdiff(1:10, [2 5 7])

Report an issue
<< CL_sec2hms Utilities CL_sortMat >>