converting a string of variables to numbers
Mostrar comentarios más antiguos
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 comentarios
Thomas
el 21 de Mayo de 2012
Can you give an example of what your output should be..
ektor
el 21 de Mayo de 2012
Oleg Komarov
el 21 de Mayo de 2012
To be more precise you're grouping by location AND country AND date.
ektor
el 21 de Mayo de 2012
Oleg Komarov
el 21 de Mayo de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!