필터 지우기
필터 지우기

sorting data using logic

조회 수: 3 (최근 30일)
Hamid Basiri
Hamid Basiri 2022년 5월 27일
다시 열림: Hamid Basiri 2022년 6월 7일
Hello,
In my simulations two particles (named 13 and -13) are generated and hit these four planes and the information of position (x,y,z) and direction (Vx,Vy,Vz), energy and the event number (I have 500,000 events) are recorded for each as dmp.txt. I am going to sort these data in a way I can have one row for each event as shown in the figure that means if the first column and the last column of each row are same, the rows must br merged into one row . As the data is big, using loops will make it very slow and difficult. Could you please suggest me other methods that I can try? Please find a sample of data file and the procedure attached.
Thank you in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by