How to arrange random data in a order of sequence?

5 visualizzazioni (ultimi 30 giorni)
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 Commenti
Rik
Rik il 14 Set 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

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Energy Production in Help Center e File Exchange

Tag

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by