converting a string of variables to numbers
Show older comments
HI all I have the varible
Country
Austria
Austria
Austria
Austria
Austria
Austria
Austria
and I want to convert it to a numeric varable. Any help?
Thanks in advance
5 Comments
Thomas
on 21 May 2012
Can you give an example of what your output should be..
ektor
on 21 May 2012
Oleg Komarov
on 21 May 2012
To be more precise you're grouping by location AND country AND date.
ektor
on 21 May 2012
Oleg Komarov
on 21 May 2012
Now that I read your duplicated question: http://www.mathworks.com/matlabcentral/answers/38910-grouping-observations-with-specific-characteristics
I understand that you do NOT want to gather but sort.
Geoff already answered your question, you have to use sortrows.
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!