Code covered by the BSD License
Kamil Wojcicki (view profile)
07 Jul 2011
14 Jul 2011)
Add noise to a signal at a prescribed SNR level.
Watch this File
Takes two signal vectors as inputs and produces a mixture signal at a desired SNR level (dB). Includes various examples.
Speech Spectrogram inspired this file.
This file inspired Ideal Binary Mask and Segmental Snr.
Updated icon transparency on package description.
randi = @(n)( round(1+(n-1)*rand) );
to support older MATLAB releases.
Relaxed sanity check to:
assert( abs(SNR(signal,noisy)-snr) < 1E10*eps(snr) );