how to generate complex random matrix without repetation in matlab?
25 views (last 30 days)
Show older comments
complex matrix should not repeat .
3 Comments
Walter Roberson
on 7 Oct 2020
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)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!