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
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Here's one way:
X = [0.5, 0.7, 1, 5];
teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
Questa domanda è chiusa.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!