How Can We Split 4D Matrix into two 2D Matrices?

I have a 4D matrix R=[90x360x90x360], how can I split it into two matrices A=[90x360] and B=[90x360]. Thanks in advance.

5 件のコメント

Bruno Luong
Bruno Luong 2019 年 8 月 29 日
You request doesn't make sense: R contains much more than two 2D arrays.
Ali Raza
Ali Raza 2019 年 8 月 29 日
Means it is not possible? Actually I couldn't understand the visualization of 4D matrix. Therefore I wrote wrong question maybe. But didn't you get it? I want to create two [90x360] matrices from [90x360x90x360], tell me is it possible or not?
Alex Mcaulley
Alex Mcaulley 2019 年 8 月 29 日
編集済み: Alex Mcaulley 2019 年 8 月 29 日
It is not possible beacuse:
90*360*90*360
ans =
1.0498e+09
2*90*360
ans =
64800
By the way, reshape could be helpful for you
Guillaume
Guillaume 2019 年 8 月 29 日
編集済み: Guillaume 2019 年 8 月 29 日
Or in other words, you've got 32400 matrices of size 90x360 in a 90x360x90x360 matrix, not just 2.
Bruno Luong
Bruno Luong 2019 年 8 月 29 日
編集済み: Bruno Luong 2019 年 8 月 29 日
In R you have 90 x 360 = 32400 of (90 x 360) matrices. here is one:
R(:,:,12,34)
here is another
R(:,:,56,321)
or
R(:,:,1,1)
R(:,:,90,360)
etc... There are 32400 of them. And you ask to get 2? The count doesn't add up.
We reallly can't help you if you don't know what your data contain, what and how you would use it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2019 年 8 月 29 日

編集済み:

2019 年 8 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by