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!