Add "FAR vs PD"

This commit is contained in:
Ksyer
2024-05-11 15:43:25 +08:00
parent 17386d80c1
commit b48ab07dd0
21 changed files with 412 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
function Psi = get_Psi(N, M, epi)
Psi = zeros(N,M*N);
for n = 0 : N-1
Cn = floor(rand()*M);
for q = 0 : N-1
for p = 0:M-1
Psi(n+1,q*M+p+1) = exp(1i*2*pi*p/M*Cn+1i*2*pi*q/N*n*(1+Cn*epi)) / sqrt(N);
end
end
end
end