how to remove repeating columns in a matrix

2 次查看(过去 30 天)
Hello all. I have a 1001x88 non-Zero Matrix with columns repeating at certain intervals. How do I remove These repeating columns? Is there any function such as unique(A,'rows') for removing repeating columns? Thanks in Advance

回答(1 个)

Adam
Adam 2016-10-11
Just transpose the matrix and use unique(A, 'rows' )

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by