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!