Professional Documents
Culture Documents
%///////////////////////////////////////////////////////////////////////
end
for qw= 1:sz(1)
for qwe = 1:sz(2)
if (y(qw,qwe)==p(qw,qwe))
v = v+1;
end
end
end
op(n) = v;
Error(n) = (16-v)/16;
SNR(n) = sum((trans1+trans2).^2)/sum(noise.^2);
end
figure
plot(SNR, Error);
Num in the code is the filter impulse response and is defined using FDA tool
A 31 order lowpass filter having cutoff frequency at 50Hz
Taking the mean of in-phase and quadrature parts we get the threshold close to that
of being transmitted.