Need to convert data from two sensors to the same sampling rate

Hi!
I have recorded data from two sensors with different sampling rates. I would like to convert both data vectors to the same sampling rate while preserving timing information of my waveforms. I have already researched using the resample command from the signal processing toolbox but I haven not been able to make it work for me.
Thank you!

댓글 수: 1

Important detail: The sampling rates are also not integer multiples of one another....

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

 채택된 답변

Arnaud Miege
Arnaud Miege 2011년 5월 11일

0 개 추천

Another suggestion, which is what I normally use for this type of problem: create a timeseries object and use the resample method.
HTH,
Arnaud

추가 답변 (3개)

Andrew
Andrew 2011년 5월 10일

0 개 추천

Use rat to get the upsample downsample ratio for the resample method. You shouldn't have issues with preserving timing information as resample compensates for the filters delay.
Sean de Wolski
Sean de Wolski 2011년 5월 10일

0 개 추천

Perhaps interp1 to interpolate to the sampling rate you desire.
Honglei Chen
Honglei Chen 2011년 5월 11일

0 개 추천

If you have Filter Design Toolbox or DSP System Toolbox, you may want to take a look at the documentation for fdesign.rsrc, it is specifically for rational rate conversion. There is also a demo named "Efficient Sample Rate Conversion between Arbitrary Factors" in the product.

카테고리

질문:

2011년 5월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by