how to generate complex random matrix without repetation in matlab?
Show older comments
complex matrix should not repeat .
3 Comments
Akira Agata
on 31 Jan 2018
Could you tell us more details? What do you mean by 'not repeat' ?
The following code can generate 2-by-4 complex random matrix. Is this what you want to do?
cMatrix = rand(2,4) + i*rand(2,4);
Tran Hoang Nam
on 7 Oct 2020
And how to generate complex random matrix with rank-deficient?
N = 5;
cMatrix = complex(rand(N, N), rand(N,N));
idx = randperm(N,3);
cMatrix(idx(1),:) = cMatrix(idx(2),:) + rand * cMatrix(idx(3),:);
rank(cMatrix)
disp(cMatrix)
Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!