Search code examples
matlabsignalsfrequencysampling

Matlab signal processing tutorial: Basics of signal resampling


I have absolutely basic question about sampling rate with regard to this tutorial: http://www.mathworks.com/help/signal/examples/measuring-signal-similarities.html (first section)

Two first signals have FS=4096, while the third is 8192. In simple words, the third signal was sampled two times more frequently. They say that to equalize the sample rates "The safest way to do this is to resample the signal with a lower sampling rate". So, their procedure actually takes every second sample of the two first signals. But wasn't the third signal was sampled two times more frequently? My intuition was exactly the opposite: if something was sampled more frequently, then I would take every second sample of it.

What do I miss? Thanks a lot,

Vadim


Solution

  • I think the sentence "The safest way to do this is to resample the signal with a lower sampling rate." is perhaps omewhat ambiguous - what it should say is "The safest way to do this is to resample the signal with the lower sampling rate.", i.e. you need to upsample the signal with the lower sample rater to make it the same as the other signal, that way you don't lose any information (as you would if you downsampled the signal with the higher sample rate).