Convert 6381x3 double to 1x3x6381 double?

2 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by