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!