Show in alphabetical order

3 次查看(过去 30 天)
João Carvalho
João Carvalho 2017-11-29
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

回答(1 个)

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

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by