How to compare and find the differences in each cell inside a cell structure array?
古いコメントを表示
Hi there,
Originally I have a matrix size of 120x8 in my workspace. Assume it is named 'A1'.
Each line/row in the matrix is unique with no repeats. (Basically like truth table)
But for my calculation, I regenerated it with more variables, and enlarge the entire matrix, becoming a 960x8 matrix.
Then I use 'mat2cell' and reform them in square size, creating a cell array with 1x120 cells, with each cell contains an 8x8 matrix.
So now I have 1x120 cell array with each cell an 8x8 matrix within.
But then, some cells maybe the same, some maybe the same but in a different order.
How do I distinguish the different matrices and eliminate any similar ones?
Thank you very much.
4 件のコメント
Adam Danz
2019 年 4 月 22 日
"But then, some cells maybe the same, some maybe the same but in a different order.'
Could you provide an example of the second part of that sentence?
Moses Tang
2019 年 4 月 22 日
Adam Danz
2019 年 4 月 22 日
I see. And you want to eliminate all such duplicates, correct?
Moses Tang
2019 年 4 月 22 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!