Here's one way:
X = [0.5, 0.7, 1, 5]; teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
Info
This question is closed. Reopen it to edit or answer.
Here's one way:
X = [0.5, 0.7, 1, 5]; teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
This question is closed.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!