필터 지우기
필터 지우기

Sorting Matricies

조회 수: 1 (최근 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 CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by