Hi. I want to create a signal with noise. I found this coding but I don't know how it works. Can somebody explain this to me?
x= cos(2*pi*12*[0:0.001:1.23]);x(end) = [];[b a] = butter(2,[0.6 0.7],'bandpass');filtered_noise = filter(b,a,randn(1, length(x)*2));x = (x + 0.5*filtered_noise(500:500+length(x)-1))/length(x)*2;
This is the result when I plot the x.
Best Answer