"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!