MATLAB: Add noise MATLABsignal processing How can i add some noise to a signal that i had already defined its equation? Best Answer You can use randn()t = 0:0.001:1;x = cos(2*pi*100*t);y = x+randn(size(t));Of course that assumes you want N(0,1) additive noise. If you want zero-mean Gaussian white noise with a different variance, then use y = x+sqrt(var_value)*randn(size(t));where var_value is the variance you want. Related SolutionsMATLAB: How to increase the space between trains in this periodic waveform t = 0 : 1/50E3 : 10e-3;spac=3e-3spac_vect=0 : spac : 10e-3 % vector of delaysamp_vect=0.8.^(0:numel(spac_vect)-1) % vector of amplitudesd = [spac_vect;amp_vect]';y = pulstran(t,d,'gauspuls',10e3,0.5);plot(t,y) MATLAB: Adding gaussian white noise to data doc randnor onlinehttp://www.mathworks.com/help/techdoc/ref/randn.html Related QuestionHow to generate gaussian noise with certain covariance and zero meanImage Processing Noise differencesHow to increase the amplitude of a gaussian pulseHow to add white gaussian noise with variance 1 to a signal and calculate the signal-to-noise ratioHow to generate additive white guassian noise
Best Answer