4D matrix manipulation
古いコメントを表示
I have a 4D matrix G size of [k*j*i*l] so its G(k,j,i,l) ,
the sizes are:
k=1x365,
j=1x31,
i=1x24,
l=1x91.
For estimation purposes I need a 3D matrix G(k,j-i,l), which I can later also plot.
I did not try anything, since I have no clue how to do it.
Thanks
4 件のコメント
Guillaume
2019 年 8 月 16 日
What does G(k, j-i, l) mean for you?
Because, given a 4D array, in matlab, the only meaning is:
G(k, j-i, l, 1)
a scalar element at row k, column j-i, page l, and 4th dimension 1.
madhan ravi
2019 年 8 月 16 日
Did you delete your question yesterday??? I was searching it for a long time.
Asliddin Komilov
2019 年 8 月 17 日
編集済み: Asliddin Komilov
2019 年 8 月 17 日
Asliddin Komilov
2019 年 8 月 17 日
回答 (1 件)
Star Strider
2019 年 8 月 16 日
I am not certain what you want.
Try this:
G = rand(365,31,24,91); % Create ‘G’
Gnew = reshape(G, 365, [], 91); % Desired Result (?)
Experiment to get the result you want.
2 件のコメント
Asliddin Komilov
2019 年 8 月 17 日
Star Strider
2019 年 8 月 17 日
My pleasure.
If my Answer helped you solve your problem, please Accept it!
カテゴリ
ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!