How can I unfold a tensor?

In the algorithm of High order SVD, A is a tensor, how to unfold it? for examplr,A(1),A(2),A(3). Thank you so much .

Respuestas (2)

Rachel
Rachel el 2 de Ag. de 2016
Editada: Rachel el 2 de Ag. de 2016

1 voto

function [X] = Unfold( T, dim, i )
X = reshape(shiftdim(T,i-1), dim(i), []);
the cyclist
the cyclist el 27 de Ag. de 2013
Editada: the cyclist el 27 de Ag. de 2013

0 votos

I am not sure I understand, but I think you want to do
A(:)
or use the reshape() command.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Ag. de 2013

Editada:

el 2 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by