how to generate complex random matrix without repetation in matlab?
24 次查看(过去 30 天)
显示 更早的评论
complex matrix should not repeat .
3 个评论
Walter Roberson
2020-10-7
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)
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!