필터 지우기
필터 지우기

4D matrix manipulation

조회 수: 2 (최근 30일)
Asliddin Komilov
Asliddin Komilov 2019년 8월 16일
댓글: Star Strider 2019년 8월 17일
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
Asliddin Komilov
Asliddin Komilov 2019년 8월 17일
편집: Asliddin Komilov 2019년 8월 17일
sorry for the confusion, the last dimension is not 1 (one) but l (L), j-i is a new dimension that is equal to j-i, but because j-i is for each values of j and i it becomes a matrix j-i(j,i) instead of an array. Here my imagination stops working, I cannot figure out how it should be. Or maybe I am wrong and the solution looks otherwise.
thanks
Asliddin Komilov
Asliddin Komilov 2019년 8월 17일
I did not remove or edit it since the first posted, it must have been a system fault maybe.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
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
Asliddin Komilov 2019년 8월 17일
thanks, I am on it.
Star Strider
Star Strider 2019년 8월 17일
My pleasure.
If my Answer helped you solve your problem, please Accept it!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by