Tuesday, 7 June 2016

MATLAB Programming 27 - Functions for set operations (3)

setdiff(A,B)Sets difference of two arrays; returns the values in A that are not in B. The values in the returned array are in sorted order.

setdiff(A,B,'rows') - Treats each row of A and each row of B as single entities and returns the rows from A that are not in B. The rows of the returned matrix are in sorted order.
The 'rows' option does not support cell arrays.


No comments:

Post a Comment