Creating a 4D array.

13 views (last 30 days)
mathman
mathman on 16 Dec 2017
Answered: Stephen23 on 16 Dec 2017
I have a 3D array, P_3D, which has the dimensions 1x301x1000. I want to make this a four dimensional array by 'inserting' another array consisting of values for time into P_3D, the time array, t_n, has the same dimensions as P_3D.
Is this possible?
I can give some background on the problem as a whole if that helps.
Thanks

Answers (1)

Stephen23
Stephen23 on 16 Dec 2017
cat(4,P_3D,t_n)

Community Treasure Hunt

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

Start Hunting!