MATLAB: How to eliminate same strings in a cell-array cellarraystrcmp Thi is my cell-array: h={'a','b','c','a','d'}; How to eliminate one of two equal strings like 'a' in the example and get a result like this: v={'a','b','c','d'}; Thanks in advance for your help! Best Answer This works:v = unique(h); Related SolutionsMATLAB: How to eliminate strings with length < 3 from cellarray days = {'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'}; abbrev = days(cellfun(@numel,days)>=3) MATLAB: How remove from a cell array, the words in an other cell array w2 = word(cellfun(@ischar,word));out_str1 = strjoin(w2(~ismember(w2,stopwords_cellstring)),' '); Related QuestionStringsNeat stacking of array and cell arrayStringsStringsConcatenate cell array into one stringHow to find the position of a number in an cell-array
Best Answer