How to arrange random data in a order of sequence?

2 views (last 30 days)
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 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 13 Sep 2020
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
  3 Comments
Manoj
Manoj on 14 Sep 2020
Thank you very much Mr.W.Roberson sir..
You are the MVP in this community when compare with others
Thank you once again

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by