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일

0 개 추천

[~, 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.

댓글을 달려면 로그인하십시오.

질문:

2017년 11월 29일

댓글:

2017년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by