setdifsa ============================================== Purpose ---------------- Returns the unique elements in one string vector that are not present in a second string vector. Format ---------------- .. function:: sy = setdifsa(sv1, sv2) :param sv1: data :type sv1: Nx1 or 1xN string vector :param sv2: data :type sv2: Mx1 or 1xM string vector :return sy: Lx1 vector containing all unique values that are in *sv1* and are not in *sv2*, sorted in ascending order. :rtype sy: vector Examples ---------------- :: string sv1 = { "mary", "jane", "linda", "john" }; string sv2 = { "mary", "sally" }; sy = setdifsa(sv1, sv2); Now *sy* is equal to: :: jane john linda Remarks ------- Place smaller vector first for fastest operation. When there are a lot of duplicates it is faster to remove them first with :func:`unique` before calling this function. Source ------ setdif.src .. seealso:: Functions :func:`setdif`