Effacer les filtres
Effacer les filtres

How to convert the following 4D matrix to 2D matrix?

4 vues (au cours des 30 derniers jours)
mohammed mahmoud
mohammed mahmoud le 8 Oct 2017
Commenté : Walter Roberson le 18 Juin 2018
I want to convert matrix (1,100,100,16384) to 2d matrix
  1 commentaire
Walter Roberson
Walter Roberson le 8 Oct 2017
What shape would you like the 2D matrix to have?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Oct 2017
reshape(YourMatrix, 100*100, [])
if you want 100*100 rows and 16384 columns as your output
  2 commentaires
Srikanth V
Srikanth V le 18 Juin 2018
But the element order is not maintained
Walter Roberson
Walter Roberson le 18 Juin 2018
What size of matrix are you starting with, and what size do you want to end up with, and what order do you want the elements to end up in?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays 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