Using awgn and snr functions in matlab
Mostra commenti meno recenti
In matlab, I create a sawtooth signal, add noise to it using 'awgn' function, and then measure the SNR using 'snr' function.
x = sawtooth(0:0.1:10);
y = awgn(x,10,'measured');
SNR = snr(y,y-x);
My question is that snr doesn't give SNR equal to 10. Rather, it gives something near to 10, but still not close enough.
Is there any other way to add noise accurately with predetermined snr, to a signal?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Propagation and Channel Models in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!