Matrix Manipulation Image Processing

2 次查看(过去 30 天)
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

采纳的回答

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

请先登录,再进行评论。

更多回答(1 个)

James Tursa
James Tursa 2015-5-27

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by