How to arrange random data in a order of sequence?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Walter Roberson
am 13 Sep. 2020
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
3 Kommentare
Walter Roberson
am 14 Sep. 2020
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Energy Production finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!