How to arrange random data in a order of sequence?
1 回表示 (過去 30 日間)
古いコメントを表示
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
採用された回答
Walter Roberson
2020 年 9 月 13 日
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
3 件のコメント
Walter Roberson
2020 年 9 月 14 日
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!