Sep 14, · After I plot, the x-axis of the plot is scaled based on the sampling frequency being Hz. Say the location of the dominant frequency in the plot is 4Hz. Now, if I change the sampling frequency to , the location of the dominant frequency is ten times the previous location. I'm trying to write a program in Matlab that samples (using Nyquist theorem) and recovers signal. I got stucked on recovery part recovery signal doesn't match with the original one (see photo). And I have to make graph that shows every sinc separately (before the sum) like on photo. The reason it's not working is that you don't use the SampleRateConverter object SRC anywhere. In fact, by using SRC as the second output argument of audioread (), you overwrite it with a number containing the current sample rate. If you want to use SampleRateConverter, check out some examples here. But, it's probably simpler to use resample ().