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
この質問は閉じられています。 編集または回答するには再度開いてください。
Here's one way:
X = [0.5, 0.7, 1, 5]; teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
この質問は閉じられています。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!