필터 지우기
필터 지우기

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

조회 수: 72 (최근 30일)
Vida
Vida 2013년 5월 14일
댓글: Walter Roberson 2022년 12월 21일
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
Justine  Nyakundi
Justine Nyakundi 2017년 8월 30일
this gives an error 'not monotonically increasing'
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