How to arrange random data in a order of sequence?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Manoj
el 13 de Sept. de 2020
Comentada: Rena Berman
el 9 de Oct. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 13 de Sept. de 2020
[sortedData, sortidx] = sortrows(YourData, [-2, 1]);
sortedU = U(sortidx, :);
sortedV = V(sortidx, :);
3 comentarios
Walter Roberson
el 14 de Sept. de 2020
[t1, t2] = ndgrid(vector241, vector185);
output = [t1(:), t2(:)];
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!