MATLAB: How to arrange names in alphabetical order

MATLABread data

Hey how do i use matlab to arrange names in alphabetical order? a code would be of great help.

Best Answer

You can use the SORT command:
An example:
names = {'gamma', 'beta', 'alpha'};
sort(names)
ans =
'alpha' 'beta' 'gamma'
Related Question