How can search for identical rows in a matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I need seach identical rows in a matrix. Can anybody help me?
Thanks
0 件のコメント
回答 (1 件)
Mark Schwab
2018 年 1 月 25 日
A brief answer would be to use the "isequal" function and row indexing. For example:
% A = some matrix
if (isequal(A(i,:),A(j,:)))
% Then row i of matrix A is equal to row j
end
Please refer to the following documentation for more information on the isequal funciton:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!