how to remove repeating rows from a matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
I know "union" can be used to achieve this, for example, there is an A,
A =
1 2
1 2
1 3
B=union(a,a,'rows')
B =
1 2
1 3
but if A is big(In my case, A is a 20,000*30 matrix), it will be out of memory.
??? Out of memory. Type HELP MEMORY for your options.
ARE there simple ways to delete repeating arrows in a matrix? THX!
2 件のコメント
Florin Neacsu
2011 年 10 月 12 日
Hi,
Are your repeating lines always one after another? If so, you could use diff and look for [0 0].
回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で Data Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!