kron function application but in 3d
5 ビュー (過去 30 日間)
古いコメントを表示
Is there a function that would replicate the elements of a matrix in 3d? If I had the matrix A(:,:,1)= [1 2; 3 4] and A(:,:,2)=[5 6; 7 8] I would want the output B(:,:,1)= B(:,:,2)= [1 1 2 2; 3 3 4 4] and B(:,:,3)=B(:,:,4)=[5 5 6 6; 7 7 8 8].
Thanks.
0 件のコメント
回答 (2 件)
Walter Roberson
2019 年 9 月 12 日
For duplicating elements with the duplicates of each element beside each other, see repelem()
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!