matrix of first & last names into alphabetical order of last name without using the sort command?

2 ビュー (過去 30 日間)
Bunny Harlan
Bunny Harlan 2016 年 11 月 3 日
コメント済み: Adam 2016 年 11 月 3 日
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
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 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