I have an array of 6,76,000 as txt file, how can I convert that into 52x13x1000.

1 回表示 (過去 30 日間)
I have an array of 6,76,000 as txt file, how can I convert that into 52x13x1000.

採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2022 年 1 月 18 日
You could try reshape, see the help and documentation of that function. If you dont get the elements in the right order with something like this:
V3D = reshape(V1D,[1000,13,52]);
Then you might have to put the new sizes in a different order and then use the premute function to re-arrange:
V3D = reshape(V1D,[13,52,1000]);
V3D = permute(V3D,[3,1,2]); % If I got the ordering right here...
Obviously you migh have your elements in an even more peculiar order, then this becomes a far more labourious task...
HTH

その他の回答 (1 件)

KSSV
KSSV 2022 年 1 月 18 日
iwant = reshape(a,1000,13,52);

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by