How to arrange random data in a order of sequence?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 13 Sep 2020
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
3 commentaires
Walter Roberson
le 14 Sep 2020
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Energy Production dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!