How do I convert a 3d cell array of different size to matrix?

1 vue (au cours des 30 derniers jours)
AJT
AJT le 30 Nov 2020
Commenté : AJT le 1 Déc 2020
How can we convert a 3d cell array to matrice. can I get 1x10 matrices from the 1x10 cell?

Réponse acceptée

Jan
Jan le 30 Nov 2020
Modifié(e) : Jan le 30 Nov 2020
M = cat(3, ETT{:});
No, this cannot create a 1x10 matrix.
  5 commentaires
Jan
Jan le 1 Déc 2020
Modifié(e) : Jan le 1 Déc 2020
If you have 10 million matrices, using a cell array and an index is still the best solution. Most of all, you do not have to hardcode the names of the variables at all, so using this method is flexible by design.
AJT
AJT le 1 Déc 2020
Thank you for a great discussion!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by