How can search for identical rows in a matrix?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I need seach identical rows in a matrix. Can anybody help me?
Thanks
0 Commenti
Risposte (1)
Mark Schwab
il 25 Gen 2018
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 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!