Convert 6381x3 double to 1x3x6381 double?

1 view (last 30 days)
I have a column of data in the form of 6381x3 but I want it in the form of 1x3x6381. Is this possible? The image shows the output I want.

Accepted Answer

Stephen23
Stephen23 on 14 May 2018
Edited: Stephen23 on 14 May 2018
You can use permute:
permute(arr,[3,2,1])
Depending on the order of the elements, you might also need a few reshape operations.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!