How do I vectorize matrices of specific modes of a tensor?

4 visualizaciones (últimos 30 días)
Krishna Shivani
Krishna Shivani el 22 de Jul. de 2020
Respondida: James Tursa el 22 de Jul. de 2020
If I have a 3-way 250 x 250 x 183 tensor, how would I go about vectorizing the matrices of modes 1-2 so that I return a matrix of size 250^2 x 183? Thank you!

Respuestas (1)

James Tursa
James Tursa el 22 de Jul. de 2020
Is this what you want?
x = your 250 x 250 x 183 array
result = reshape(x,250*250,183);

Categorías

Más información sobre Linear Algebra 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