You cannot do that in a single ismember call. Use cellfun
cellfun(@(s)all(ismember(s, T)), S)
This will return a logical array the same size as S.
Watch out for empty S entries, they might not give you the results you want
You cannot do that in a single ismember call. Use cellfun
cellfun(@(s)all(ismember(s, T)), S)
This will return a logical array the same size as S.
Watch out for empty S entries, they might not give you the results you want
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!