How to arrange random data in a order of sequence?

5 Ansichten (letzte 30 Tage)
Manoj
Manoj am 13 Sep. 2020
Kommentiert: Rena Berman am 9 Okt. 2020
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 Kommentare
Rik
Rik am 14 Sep. 2020
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 am 9 Okt. 2020
(Answers Dev) Restored edit

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Sep. 2020
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
  3 Kommentare
Walter Roberson
Walter Roberson am 14 Sep. 2020
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
Manoj
Manoj am 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Energy Production finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by