Using awgn and snr functions in matlab
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Propagation and Channel Models in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!