Borrar filtros
Borrar filtros

Truncating a 3-d matrix into 2-d

1 visualización (últimos 30 días)
Kash022
Kash022 el 17 de Feb. de 2017
Editada: the cyclist el 17 de Feb. de 2017
Hi All,
I have a matrix
X=16x16x4000
I want to truncate it (and delete the 4000 entirely) and make it to just 16x16. How should I do this? I have tried everything from permute to using [ ] but it just doesn't work. Thanks!
  1 comentario
Easwar Kumar Yarrabikki
Easwar Kumar Yarrabikki el 17 de Feb. de 2017
Have you tried to reshape it to 16x16...?

Iniciar sesión para comentar.

Respuesta aceptada

the cyclist
the cyclist el 17 de Feb. de 2017
Editada: the cyclist el 17 de Feb. de 2017
You are not being specific enough to determine a unique solution. If you are happy with just the first "slice" in the 3rd dimension, then
X(:,:,1)
is a 16x16 array.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by