Given a vector, how to pair them by nearest?
이전 댓글 표시
Hi,
I have a vector with values. I have to pair them by nearest.
Is there any magic command to do it?
Thanks!
채택된 답변
추가 답변 (1개)
Jos (10584)
2013년 2월 25일
0 개 추천
What do you mean by ' pair them by nearest '? Do you want to SORT the values?
Otherwise, can you give a small example of your vector and the required result of such a magic function?
댓글 수: 1
Dani Tormo
2013년 2월 25일
편집: Dani Tormo
2013년 2월 25일
카테고리
도움말 센터 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!