How do I generate a 4 dimensional matrix of dimension 5x5x5x5 with random complex numbers as elements?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vishav Rattu
am 20 Okt. 2016
Kommentiert: Walter Roberson
am 16 Mär. 2021
If I am successful to do so, can I invert the above matrix? Let us say I have A(a,b;c,d) as a 4-d matrix. If I invert this matrix will i get B(c,d;a,b)?
3 Kommentare
Walter Roberson
am 21 Okt. 2016
There are no MATLAB routines to do multidimensional matrix inversion. You would need to write them yourself. The result would be whatever the theoretic result would be, which is outside of the scope of the MATLAB Answers forum.
Akzeptierte Antwort
Walter Roberson
am 20 Okt. 2016
A = complex(rand(5,5,5,5), rand(5,5,5,5);
or
A = rand(5,5,5,5) + 1i * rand(5,5,5,5);
then
B = permute(A, [3 4 1 2]);
2 Kommentare
Walter Roberson
am 16 Mär. 2021
N = number_of_entries;
D = 100;
dim100 = rand([ones(1,D-1),N]);
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!