How can I plot the SNR graph?
Mostrar comentarios más antiguos
Hello to everyone. I want to create a Pd - SNR dB graph. I extracted the Probability detection formula. Here I took the power of the noise as a variable to generate Snr_dB. When L=100, the graph looks good, but as I enlarge the L value, my graph gets distorted. I couldn't understand why. When L values are 10,100,1000, I expect a graph similar to the one I will put below, but it breaks down except for the value of 100. I will be glad if you can help me by sharing the code. If there is something in the code that you don't understand, I can explain.
L=100;
thr=0.01;
snr_dB = [-25:2:20]; % SNR in decibels
snr = 10.^(snr_dB./10);
for k=1:length(snr)
n_sigma(k)=(0.0206+0.0074)/snr(k);
Pd_denklem(k) = (thr-L*(0.0206+n_sigma(k)+0.0074))/sqrt((L*(4*0.0074*(0.0206+n_sigma(k))+2*(0.0206+n_sigma(k))^2)));
pd(k)=qfunc(Pd_denklem(k));
end
plot(snr_dB,pd)

4 comentarios
Sulaymon Eshkabilov
el 1 de Ag. de 2021
Pl., post the formulations taken for n_sigma, Pd_denklem in your code.
studentmatlaber
el 1 de Ag. de 2021
Editada: studentmatlaber
el 1 de Ag. de 2021
studentmatlaber
el 2 de Ag. de 2021
Sulaymon Eshkabilov
el 2 de Ag. de 2021
I will try to rewrite the code according to your posted formulations.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Acoustics, Noise and Vibration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
