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
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Here's one way:
X = [0.5, 0.7, 1, 5];
teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
Cette question est clôturée.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!