How do I vectorize matrices of specific modes of a tensor?
6 ビュー (過去 30 日間)
古いコメントを表示
If I have a 3-way 250 x 250 x 183 tensor, how would I go about vectorizing the matrices of modes 1-2 so that I return a matrix of size 250^2 x 183? Thank you!
0 件のコメント
回答 (1 件)
James Tursa
2020 年 7 月 22 日
Is this what you want?
x = your 250 x 250 x 183 array
result = reshape(x,250*250,183);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!