Creating an index vector

2 ビュー (過去 30 日間)
Mateus Pianowski
Mateus Pianowski 2017 年 11 月 26 日
コメント済み: Image Analyst 2017 年 11 月 26 日
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

採用された回答

Walter Roberson
Walter Roberson 2017 年 11 月 26 日
[DVOA, ind] = sort(....)
  1 件のコメント
Image Analyst
Image Analyst 2017 年 11 月 26 日
Team = Team(ind); % Sort Team in the very same order.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by