Borrar filtros
Borrar filtros

Matrix Manipulation Image Processing

1 visualización (últimos 30 días)
Jes
Jes el 27 de Mayo de 2015
Comentada: Walter Roberson el 6 de Ag. de 2015
I have a matrix of 100 rows and 2 columns. How to sort the first column of the matrix and write the corresponding second column elements. Please help me. Its Urgent.Thanks in Advance

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 27 de Mayo de 2015
A = rand(100,2); % your matrix
[~,ii] = sort(A(:,1));
out = A(ii,:);
  1 comentario
Jes
Jes el 27 de Mayo de 2015
Thanks a lot. It works. Could you please explain me once . Thanks

Iniciar sesión para comentar.

Más respuestas (1)

James Tursa
James Tursa el 27 de Mayo de 2015
doc sortrows

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by