Sorting Matricies

2 ビュー (過去 30 日間)
Nathaniel
Nathaniel 2012 年 6 月 20 日
I have a 100 by 100 matrix. Each row across is filled with intensity data for an individual cell. (Diffusive motion almost) I want to average each row and get an AVERAGE Intensity for each row/cell. The next step is to sort the rows from the least AVERAGE Intensity to the greatest.
When we sort the averages, we lost track of which correspond to which row.
Does anyone have a solution to this problem?

採用された回答

Nirmal
Nirmal 2012 年 6 月 20 日
[b,c]=sort(a)
b will have the sorted a, while c contains the index.
Hope it helps.
  1 件のコメント
Nathaniel
Nathaniel 2012 年 6 月 20 日
Thank You very much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by