How to arrange random data in a order of sequence?

5 ビュー (過去 30 日間)
Manoj
Manoj 2020 年 9 月 13 日
コメント済み: Rena Berman 2020 年 10 月 9 日
PFA.. of the data (rawdata.txt) which is in random order for the Long, Lat, U and V parameters
Need the output in the same way as given in attachment. Pls find
Thankin you
  2 件のコメント
Rik
Rik 2020 年 9 月 14 日
Unfortunately for Manoj, their attempt at cheating was foiled by Google cache (permalink, should be available in a few hours):
PFA.. of the data (rawdata.txt) which is in random order for the Long, Lat, U and V parameters
Need the output in the same way as given in attachment. Pls find
Thankin you
Rena Berman
Rena Berman 2020 年 10 月 9 日
(Answers Dev) Restored edit

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 9 月 13 日
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 9 月 14 日
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
Manoj
Manoj 2020 年 9 月 14 日
Thank you very much Mr.W.Roberson sir..
You are the MVP in this community when compare with others
Thank you once again

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnergy Production についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by