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 日
  1 件のコメント
Jes
Jes 2015 年 5 月 27 日
Thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by