Unfold 3D I x J x K to 2D I x JK
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Maxwell Barton
le 1 Août 2019
Modifié(e) : KALYAN ACHARJYA
le 1 Août 2019
Hi,
I am trying to unfold a matrix in the form I x J x K to I x JK corresponding to I batches, J variables and K time periods (within the batch).
I currently have got this matrix:
And I need it in the form:
How would I go about doing this as I think reshape is inadequate?
Thanks
1 commentaire
Réponse acceptée
KALYAN ACHARJYA
le 1 Août 2019
Modifié(e) : KALYAN ACHARJYA
le 1 Août 2019
"I am trying to unfold a matrix in the form I x J x K to I x JK"
May be: Are you looking for this one?
[R C D]=size(M);
X=reshape(M,R,C*D)
I ignored this part "corresponding to I batches, J variables and K time periods (within the batch). "
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox 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!