Convert 6381x3 double to 1x3x6381 double?

9 vues (au cours des 30 derniers jours)
C Smyth
C Smyth le 14 Mai 2018
Modifié(e) : Stephen23 le 14 Mai 2018
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.

Réponse acceptée

Stephen23
Stephen23 le 14 Mai 2018
Modifié(e) : Stephen23 le 14 Mai 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.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by