Count unique rows in a cell full of vectors
问题 I have a cell in MATLAB where each element contains a vector of a different length e.g. C = {[1 2 3], [2 4 5 6], [1 2 3], [6 4], [7 6 4 3], [4 6], [6 4]} As you can see, some of the the vectors are repeated, others are unique. I want to count the number of times each vector occurs and return the count such that I can populate a table in a GUI where each row is a unique combination and the date shows how many times each combination occurs. e.g. Count "[1 2 3]" 2 "[6 4]" 2 "[2 4 5 6]" 1 "[7 6 4