is it possible to upsampling or down sampling by a non-integer number?

77 次查看(过去 30 天)
I have two files that I need to synchronise one is sampled at every 3ms = 1/0.003 = 333.33Hz and one at every 10ms = 1/0.01 = 100Hz. I have not been able to find a matlab command in basic or signal processing toolbox to either upsample to 100Hz to 333.33 or downsample 333.33 to 100Hz. Can anyone help?

采纳的回答

Greg Dionne
Greg Dionne 2017-9-1
In case someone else is looking at this... have a look at resample.
  1 个评论
Abdelwahab Afifi
Abdelwahab Afifi 2020-10-24
I'm using resample function to upsample my data. I need to increase the stop band attenuation to improve the Adjacent channel power ratio (ACPR) . How can i do that?

请先登录,再进行评论。

更多回答(2 个)

Matt J
Matt J 2013-5-14
You need to interpolate, e.g., using interp1() or griddedInterpolant()
  2 个评论
Jan
Jan 2017-8-30
编辑:Jan 2017-8-30
@Justine: The message is clear. The interpolation requires strict monotonically increasing data as input. Obviously your code provides something else.

请先登录,再进行评论。


Jan
Jan 2013-5-14
编辑:Jan 2013-5-14
Matlab's upsample and downsample are not really useful here. I'd prefer the alreayd mentioned interp1, but decimate would perform an anti-aliasing also.
  4 个评论
kim zheng cho
kim zheng cho 2022-12-21
Hi and good day
I have a signal sampled at 4552 Hz. I want to downsample that signal to 4096 Hz. Do you know that how to do it?
thank you

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by