How can I change the order of an N-dimensional array?

3 views (last 30 days)
I have an array of size (300*1*6*1000).
But I want to change the order of this array as below.
(300*1*6*1000) >> (6*300*1*1000)
How can I change it, sir?

Accepted Answer

Jan
Jan on 15 Nov 2021
X = permute(X, [3,1,2,4]);

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!