MATLAB: Union of cell matrix cellmatrixunionunique I have a cell matrix A={[1 2 3] [2 8] [9 2 5]}; I want unique value or union of A. The solution should be like this = [1 2 3 5 8 9] Please give me the Best Answer unique(cell2mat(A)) Related SolutionsMATLAB: Matrix unions You can use a real handy function called ismember() to test elements of A against elements of B. Then it's just a matter of indexing:in = ismember(A,B);C = nan(size(A));C(in) = A(in); MATLAB: Call all element inside cell (this cell contain another set of cells) [cell_A{:}] Related QuestionHow to sort/Rearrange a matrixUnion of closed intervalsObtain cell according to a corresponding valueHow to sort a matrix by a predefined orderHow to use union operator
Best Answer