Matrix Manipulation Image Processing

조회 수: 1 (최근 30일)
Jes
Jes 2015년 5월 27일
댓글: Walter Roberson 2015년 8월 6일
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에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by