is it possible to upsampling or down sampling by a non-integer number?
이전 댓글 표시
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?
채택된 답변
추가 답변 (2개)
Matt J
2013년 5월 14일
1 개 추천
You need to interpolate, e.g., using interp1() or griddedInterpolant()
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
MAT-Magic
2020년 1월 10일
Dear Jan,
I have a signal sampled at 26 Hz. I want to downsample that signal to 5.2 Hz. Do you know that how to do it? Thanks in advance.
Walter Roberson
2020년 10월 24일
resample(signal, 5, 1)
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
Walter Roberson
2022년 12월 21일
resample 569, 512
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!