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
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Here's one way:
X = [0.5, 0.7, 1, 5]; teamList = {'Team1','Team2','Team3','Team4'};
[sortedX,sortingIndex] = sort(X,'descend'); sortedTeamList = teamList(sortingIndex)
La pregunta está cerrada.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!