Show in alphabetical order

3 visualizaciones (últimos 30 días)
João Carvalho
João Carvalho el 29 de Nov. de 2017
Comentada: Walter Roberson el 29 de Nov. de 2017
The objetive of the program is to show a data list that is saved in a notepad. But I want to show it in alphabetical order from the name(4th column). What can I change? Thanks

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Nov. de 2017
[~, sortidx] = sort({users.name});
for k = sortidx
...
end
  2 comentarios
João Carvalho
João Carvalho el 29 de Nov. de 2017
What should I write between "for k = sortidx" and "end"?
Walter Roberson
Walter Roberson el 29 de Nov. de 2017
What you already have in your for loop.

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by