Case insensitive sort function
Version 1.1.0.0 (539 octets) par
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
Citation pour cette source
Germán (2026). Case insensitive sort function (https://fr.mathworks.com/matlabcentral/fileexchange/41745-case-insensitive-sort-function), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2013a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | 25/3/2014 Update: Now also returns the index vector I as in the SORT function |
||
| 1.0.0.0 |
