Case insensitive sort function
Versione 1.1.0.0 (539 Byte) da
Germán
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
Cita come
Germán (2024). Case insensitive sort function (https://www.mathworks.com/matlabcentral/fileexchange/41745-case-insensitive-sort-function), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2013a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.