File Exchange

image thumbnail

Add Noise

version 1.2 (913 KB) by

Add noise to a signal at a prescribed SNR level.

25 Downloads

Updated

View License

Takes two signal vectors as inputs and produces a mixture signal at a desired SNR level (dB). Includes various examples.

Comments and Ratings (4)

Kamil Wojcicki

Kamil Wojcicki (view profile)

Hi ARA, this function takes signal and noise _samples_ as input vectors from the user, i.e., you have to provide noise samples, these are not internally generated by the function. Hope that makes sense.

Please also see the description and simple usage example in the addnoise() function header: https://www.mathworks.com/matlabcentral/fileexchange/32136-add-noise/content/addnoise/addnoise.m

ARA

ARA (view profile)

thanks for the file exchange. pls describe what kind of noise this function will add to the signal? white? Gaussian?

aoli ao

Neo

Neo (view profile)

Updates

1.2

Added:

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) );

1.1

Updated icon transparency on package description.

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired by: Speech Spectrogram

Inspired: Ideal Binary Mask, Segmental SNR

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video