CelestLab version of setdiff function.
[a, ka] = CL_setdiff(a, b [, orien])
This function has been developped to fix bug #15967 in Scilab 6.0.2. and bug #16340 in Scilab 6.1.0.
See setdiff for more details.
- If b is empty, the outputs are the same as unique(a [, orien]).
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.
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.
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.
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")
CNES - DCT/SB