matrix of first & last names into alphabetical order of last name without using the sort command?
2 ビュー (過去 30 日間)
古いコメントを表示
How do I sort a matrix that contains first & last names, into alphabetical order of last name without using the sort command? I have a matrix of 2 columns but different lengths of names. But I need to put them in alphabetic order by last name without using the builtin sort function command. Maybe by using Find and char?
1 件のコメント
Adam
2016 年 11 月 3 日
Just write your own sort function if you can't use the builtin. It's one of the standard algorithmic recipes with loads of different implementations that you can easily lookup.
回答 (0 件)
参考
カテゴリ
Help Center および 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!