4D matrix manipulation

8 views (last 30 days)
Asliddin Komilov
Asliddin Komilov on 16 Aug 2019
Commented: Star Strider on 17 Aug 2019
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 Comments
Asliddin Komilov
Asliddin Komilov on 17 Aug 2019
I did not remove or edit it since the first posted, it must have been a system fault maybe.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 16 Aug 2019
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 Comments
Star Strider
Star Strider on 17 Aug 2019
My pleasure.
If my Answer helped you solve your problem, please Accept it!

Sign in to comment.

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!