Downsampling of RPM traces

조회 수: 3 (최근 30일)
MAT-Magic
MAT-Magic 2020년 1월 10일
편집: MAT-Magic 2020년 1월 22일
Hi,
I have RPM trace signal (respiratory data) sampled at 26 Hz. I want to downsample RPM trace signal to 5.2 Hz. Does anyone know how to downsample this trace signal to 5.2 Hz?
Thanks in advance.

채택된 답변

Star Strider
Star Strider 2020년 1월 10일
I assume that the signal is sampled regularly, and a fixed sampling interval.
Use the Signal Processing Toolbox resample function. It will do exactly what you want.
A prototype call to it would be:
RPMrs = resample(RPM, 52, 260);
so the output will be sampled at 5.2/26 of the original rate.
To calculate a new time vector for it, use the linspace function.
Note that if it is not uniformly sampled, first follow the procedure in Resample a Nonuniformly Sampled Data Set, then do the rate resampling.
  댓글 수: 15
MAT-Magic
MAT-Magic 2020년 1월 22일
Thank you so much Sir !!!
Star Strider
Star Strider 2020년 1월 22일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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