Delete a dimension from a 3d array to convert into a 2d array (Matrix)

8 vues (au cours des 30 derniers jours)
I have an array of the following dimensions 1x3500x250. I want to delete this one extra dimension and convert it into 3500x250 2d array matrix in Matlab. How do I do it?

Réponse acceptée

Guillaume
Guillaume le 5 Déc 2019
squeeze(yourarray)
or
permute(yourarray, [2 3 1])
squeeze is simpler and will get rid of all singleton dimensions.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by