How to create an antisymmetric tensor
Afficher commentaires plus anciens
I want to create an antisimmetric (skew symmetric) N x N x N x N array whose independent components are random variables generated by a gaussian distribution. I know how to create the random variables: I just use normrnd. The problem comes when I have to antisymmetrize the tensor. One idea was to use a generalized Kronecker delta function, but I don't know how to create one and I can't find any answers in the forum either.
Réponses (1)
Sulaymon Eshkabilov
le 8 Mai 2019
Hi,
Here is one of the easy generators:
clearvars
N = 13;
for ii = 1:N
M(ii, :, :) = normrnd(0, 1, [N,N]);
end
Catégories
En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!