Effacer les filtres
Effacer les filtres

cropping the matrix size

9 vues (au cours des 30 derniers jours)
Sasi umaiyal
Sasi umaiyal le 1 Déc 2016
Commenté : Sasi umaiyal le 1 Déc 2016
i have a matrix of 200*200*200 and i want to convert this into 26*200*200. is this possible?

Réponse acceptée

Adam
Adam le 1 Déc 2016
Yes, just use colon notation
doc colon
e.g.
myMatrix = myMatrix( 1:26, :, : )
but obviously it depends what you want the 26 to be and if you are just discarding the other 174 or whether you are expecting to do some kind of maths to combine 200 down into 26 which would be a differentproblem entirely.
  1 commentaire
Sasi umaiyal
Sasi umaiyal le 1 Déc 2016
Thanks :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion 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