Case insensitive sort function

Case insensitive sorting of a cell array of strings.

您现在正在关注此提交

Matlab's SORT function returns first upper case contents and then lower case. SORTI will sort by alphabet without considering the case
For example
sort({'A' 'a' 'B' 'b'})
will return
{'A' 'B' 'a' 'b'}
while SORTI will return
{'A' 'a' 'B' 'b'}

25/3/2014 Update: Now also returns the index vector I as in the SORT function

引用格式

Germán (2026). Case insensitive sort function (https://ww2.mathworks.cn/matlabcentral/fileexchange/41745-case-insensitive-sort-function), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

25/3/2014 Update: Now also returns the index vector I as in the SORT function

1.0.0.0