MATLAB: How to find unique lines in cell arrays cell arraysunique How to find unique lines in the next cell array: 15 'm' 18 'm' 15 'm' So the result will be: 15 'm' 18 'm' Best Answer use unique function Related SolutionsMATLAB: Find unique or duplicate cells in cell array of chars A = {{'A', 'B', 'C'}, {'C', 'D', 'E'}, {'A', 'B', 'C'}, {'C', 'B', 'A'}}N = arrayfun(@(k) sum(arrayfun(@(j) isequal(A{k}, A{j}), 1:numel(A))), 1:numel(A))unique_elements = A(N==1)duplicated_elements = A(N>1) MATLAB: Arrange a matrix with repeated rows [idx idx] = sortrows(sort(a,2)); a = a(idx,:); Related QuestionHow to repeat a cellDouble to string in a cellHow to find unique rows in cell array in matlabHow to use ‘setdiff’ func. on cellsConvert cell array into vectorMerging of cell data .
Best Answer