4D matrix manipulation
8 views (last 30 days)
Show older comments
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:
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.
Star Strider on 16 Aug 2019
I am not certain what you want.
G = rand(365,31,24,91); % Create ‘G’
Gnew = reshape(G, 365, , 91); % Desired Result (?)
Experiment to get the result you want.
Star Strider on 17 Aug 2019
If my Answer helped you solve your problem, please Accept it!
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!