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 .

回答 (2 件)

Rachel
Rachel 2016 年 8 月 2 日
編集済み: Rachel 2016 年 8 月 2 日

1 投票

function [X] = Unfold( T, dim, i )
X = reshape(shiftdim(T,i-1), dim(i), []);
the cyclist
the cyclist 2013 年 8 月 27 日
編集済み: the cyclist 2013 年 8 月 27 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeSignal Processing Toolbox についてさらに検索

タグ

質問済み:

2013 年 8 月 27 日

編集済み:

2016 年 8 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by