If this is not a problem with an alias, it looks like you could build a frequency response on a normalized frequency scale that will change with the sampling frequency. Here is an example of a reasonably good way to build the frequency response of a signal in Matlab:
Fs = 100; Tmax = 10; time = 0:1/Fs:Tmax; omega = 2*pi*10; % 10 Hz signal = 10*sin(omega*time) + rand(1,Tmax*Fs+1); Nfft = 2^8; [Pxx,freq] = pwelch(signal,Nfft,[],[],Fs) plot(freq,Pxx)
Note that the sampling frequency must be explicitly passed to the pwelch to output “real” frequency data. Otherwise, when you change the sampling frequency, the bit in which the resonance occurs will shift, which is similar to the problem you are describing.
Will robertson
source share