How to arrange names in alphabetical order
106 ビュー (過去 30 日間)
古いコメントを表示
Hey how do i use matlab to arrange names in alphabetical order? a code would be of great help.
0 件のコメント
採用された回答
Davide Ferraro
2011 年 4 月 5 日
You can use the SORT command:
An example:
names = {'gamma', 'beta', 'alpha'};
sort(names)
ans =
'alpha' 'beta' 'gamma'
1 件のコメント
その他の回答 (1 件)
Walter Roberson
2011 年 4 月 5 日
Arranging names in alphabetical order is a complex topic which depends greatly upon the local rules of what "alphabetical order" mean. For example, in Canadian English, "Judith Amulen" is alphabetically after "Judith de Adele" which in turn is alphabetically after "Judith von Abless" because the prepositions "de" and "von" are not considered to be part of the sorting order.
Where does "ll" sort in Spanish? Where does the German "fat-s" sort? å sorts between z and the next letter in Swedish but sorts last in Norwegian. How do you sort Chinese alphabetically ?
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!