How to create an antisymmetric tensor

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.

Risposte (1)

Hi,
Here is one of the easy generators:
clearvars
N = 13;
for ii = 1:N
M(ii, :, :) = normrnd(0, 1, [N,N]);
end

Categorie

Scopri di più su Random Number Generation in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by