how to generate complex random matrix without repetation in matlab?

조회 수: 35 (최근 30일)
VISHALI V
VISHALI V 2018년 1월 31일
댓글: Walter Roberson 2020년 10월 7일
complex matrix should not repeat .
  댓글 수: 3
Tran Hoang Nam
Tran Hoang Nam 2020년 10월 7일
And how to generate complex random matrix with rank-deficient?
Walter Roberson
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)
ans = 4
disp(cMatrix)
0.2452 + 0.6041i 0.1954 + 0.2729i 0.4483 + 0.6054i 0.0907 + 0.2403i 0.2480 + 0.6074i 0.0290 + 0.4051i 0.5763 + 0.3506i 0.3528 + 0.3226i 0.2180 + 0.6163i 0.7613 + 0.3637i 0.8655 + 0.3843i 0.6502 + 0.7220i 0.9093 + 0.6618i 0.4900 + 0.0811i 0.8434 + 0.7145i 0.0805 + 0.3709i 0.6707 + 0.9697i 0.8185 + 0.5859i 0.1826 + 0.7029i 0.2527 + 0.0011i 0.3133 + 0.9175i 0.7620 + 1.0921i 1.1399 + 1.1004i 0.2450 + 0.8342i 0.4615 + 0.6083i

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by