Matrix Manipulation Image Processing

1 vue (au cours des 30 derniers jours)
Jes
Jes le 27 Mai 2015
Commenté : Walter Roberson le 6 Août 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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (1)

James Tursa
James Tursa le 27 Mai 2015

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by