Reduce Matrix Dimensions for 5D-Data
4 ビュー (過去 30 日間)
古いコメントを表示
Matthias Saurer
2021 年 1 月 27 日
コメント済み: Matthias Saurer
2021 年 1 月 31 日
Lets say we have a 5D-Matrix M and want to convert it to 4D-matrix M' in a way such that we combine dim1 and dim3 into a new dim1':
Or more mathematically (hopefully this notation is understandable):
M'(:,m,n,p) = M(:,m,:,n,p) for all m,n,p.
Obviously we could use loops for that, but im looking for a more elegant way, maybe we could make clever use of sub2ind?
2 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!