"Sort 3_D array along the third dimension"
이전 댓글 표시
https://www.mathworks.com/help/matlab/ref/sort.html has an example of "Create a 2-by-2-by-2 array and sort its elements in ascending order along the third dimension." What does "along the third dimension" mean?
댓글 수: 1
Bruno Luong
2022년 7월 15일
it means for any valid (i, j)
v = squeeze(A(i,j,:))
is sorted.
채택된 답변
추가 답변 (1개)
Torsten
2022년 7월 15일
0 개 추천
It means that B(:,:,1) <= B(:,:,2) is arranged by ordering the vectors [2,-1], [3,9],[1,0] and [6,12].
카테고리
도움말 센터 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!