MATLAB: Am I not able to use the INTERSECTION, ISMEMBER and UNION functions with the ‘rows’ flag when applying them to a cell array of strings in MATLAB 7.2 (R2006a)

MATLAB

I would like to have the ability to use the ISMEMBER, UNION and INTERSECT functions on cell arrays of strings with the 'rows' flag.

Best Answer

The ability to use the ISMEMBER, UNION or INTERSECT functions with the 'rows' flag on a cell arrays of strings is not available in MATLAB.
To work around this issue, use STRVCAT to create an array of strings and use ISMEMBER, INTERSECT or UNION on that array instead of the cell array.