How can search for identical rows in a matrix?

3 visualizaciones (últimos 30 días)
Miguel Angel Guardiola Marco
Miguel Angel Guardiola Marco el 22 de En. de 2018
Respondida: Mark Schwab el 25 de En. de 2018
Hi, I need seach identical rows in a matrix. Can anybody help me?
Thanks

Respuestas (1)

Mark Schwab
Mark Schwab el 25 de En. de 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:

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by