Info
This question is closed. Reopen it to edit or answer.
How can I filter all the distinct elements from a cell array of 36 elements? (each element is a sorted row matrix) In the code below, F(cell) contains 36 elements, some of them are same. I need all the distinct ones in a separate cell. Thanks!
1 view (last 30 days)
Show older comments
for m = 1:N
y = C{m}
v = HammMats{m}
s = sum(v,2);
list = [s(1), s(2), s(3), s(4), s(5)];
t = s(1)+s(2)+s(3)+s(4)+ s(5);
HammStr = sort(list);
F{m} = HammStr
end
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!