How to decompose a 4th order tensor
16 ビュー (過去 30 日間)
古いコメントを表示
Hello
Is there any matlab function to decompose a 4th order tensor?
0 件のコメント
回答 (2 件)
Christine Tobler
2021 年 2 月 3 日
The value of K1111 is overwritten with the next value in every loop iteration - is this your intention, or did you maybe mean to add them up? That is, for example,
K1111 = K1111 + inv(J) * F(a,A) * F(b,B) * K(A,B,K,D) * F(K,K) * F(d,D);
I'm also getting the impression you're using the same variable name K for both the iterator in the for-loop and the tensor K you're operating on. The formula you wrote up was using F(c, C) instead of F(K, K) in the code.
2 件のコメント
Christine Tobler
2021 年 2 月 3 日
But your code is using K(A, B, K, D), not K(A, B, C, D). Can you confirm if this is correct? I don't think the code matches up with the definition you've written above, but I'm not sure which of the two fits what you want to compute.
Derek Cooper
2021 年 2 月 3 日
編集済み: Derek Cooper
2021 年 2 月 3 日
2 件のコメント
Christine Tobler
2021 年 2 月 3 日
Is D a scalar index from 1 to 3, or is it a 4-dimensional array? It seems to be used for both, maybe there should be a different variable name for one of them, too.
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!