Creating an index vector
2 次查看(过去 30 天)
显示 更早的评论
I was able to sort the stats variable in descending order but I have no idea of how to store the index vector. Here is the question:
3)Sort vector stats in descending order, and store the sorted vector in variable DVOA, and index vector in variable ind.
4)Use index vector ind to rearrange the order of both variables team and name to match the order the sorted DVOA vector, and store rearranged teams in variable Team, and rearranged names in variable Name
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!