I am not sure if this is the correct forum for this question but here it goes. If this is not the correct forum please direct me to the appropriate forum.
I wish to add some periodic noise to a 1-D signal in Matlab. I have to create the noise myself. Now my issues is of the frequency and the sample size of the noise.
Lets say that the signal vector in which I wish to add noise has length
x and in Matlab, as we know, when we wish to add two signals, the length of the vectors must be same, so I will have to create a noise with the same length
x. Now first I have to decide the frequency
f of the noise, which is a problem because in Matlab every thing is discrete and I am not sure whether my
f should be a function of
x because the value of
f affects the length of my noise vector signal overall and also the shape/look of my noise vector.
I want to ask that what are the best practices to follow when creating and adding periodic noise to a signal of fixed length. For random/Gaussian random it is very easy as it is not periodic but what about periodic noise.