I'm very new to all of this.
Right now I'm just trying to add a bunch of different noises to an input signal and see how they affect my signal.
This is the current output of my code:
signal,Fs = audioread('~/Documents/Methlab/sp03-0.wav');
%generate white noise from input signal
[m,n] = size(signal);
snr = input('SNR: ');
power = input('Power[DbW] ');
whitenoise = wgn(m,n,power)
noiseSignal = addnoise(signal,noise,snr);
%FILTER THE NOISE
%filteredSignal =
VSLMS(filter_size,ss_uper,ss_lower,input_file,iterations)
subplot(2,2,1);
plot(signal)
title('Input signal')
subplot(2,2,2);
plot(noiseSignal)
title('White noise and signal sum')
If it helps anyone, I'm using this addnoise
function to add the noise.
From what I understand if I change power and SNR the white noise should look different based on what I input right? What am I missing ?
I've tried a bunch of powers and SNR combinations. SNR being 0.0004 or 0.9 or power being 30 or 0.0003 had no effect on the signal output.
whitenoise
. Does its power change when you changepower
? If so, the problem is not with Matlab. $\endgroup$ – MBaz Nov 16 '17 at 23:35whitenoise
? Why you are usingaddnoise
function instead of built-inawgn
function? In which place you are receiving no difference? After VSLMS or before VSLMS? $\endgroup$ – Furkan Küçük Nov 17 '17 at 5:37