How to combine and transpose arrays?
1 回表示 (過去 30 日間)
古いコメントを表示
I have 4 arrays. Each one is 39690x1 double. I need to combine them into one array that is 4x39690 double.
inp = cat(2,He,Lu);
inp = inp';
This works when I combine two arrays.
imp = cat(4,S1,S2,S3,S4);
inp = inp';
But when I try it on 4 arrays it gives me errors: Error using '
TRANSPOSE does not support N-D arrays. Use PAGETRANSPOSE/PAGECTRANSPOSE to
transpose pages or PERMUTE to reorder dimensions of N-D arrays.
I tried out permute but can only find examples on how to use it on 3D images or excel files, it doesn't do what I need. And I can't find much at all on how to use PAGETRANSPOSE.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!