From: joseph Frank on
I have a cell array A where the first column is years and the second is a unique ID

2001 '00846U'
2007 '00846U101'
2004 '00846U101'
1990 '013817'
1995 '013817'
1992 '013817'

how can I sort it using two dimensions: based on ID and then based on years ? i.e for each group of unique IDs I want the rows to be sorted by years from smallest to largest . also the IDs should be sorted from smallest to largerst
From: joseph Frank on
I tried the sortcell function posted on the file exchange forum, I received :
??? Error using ==> sortcell at 104
This column is mixed so sorting cannot be completed.
 | 
Pages: 1
Prev: Mastermind Matlab
Next: matlab compiler cgi