How to arrange random data in a order of sequence?

조회 수: 8 (최근 30일)
Manoj
Manoj 2020년 9월 13일
댓글: Rena Berman 2020년 10월 9일
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
Rik
Rik 2020년 9월 14일
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 2020년 10월 9일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Energy Production에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by