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 .

Réponses (2)

Rachel
Rachel le 2 Août 2016
Modifié(e) : Rachel le 2 Août 2016

1 vote

function [X] = Unfold( T, dim, i )
X = reshape(shiftdim(T,i-1), dim(i), []);
the cyclist
the cyclist le 27 Août 2013
Modifié(e) : the cyclist le 27 Août 2013

0 votes

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

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Question posée :

le 27 Août 2013

Modifié(e) :

le 2 Août 2016

Community Treasure Hunt

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

Start Hunting!

Translated by