Be the first to rate this file! 7 Downloads (last 30 days) File Size: 539 Bytes File ID: #41745

Case insensitive sort function

by

 

14 May 2013 (Updated )

Case insensitive sorting of a cell array of strings.

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
26 Mar 2014

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

Contact us