Need to convert data from two sensors to the same sampling rate
Mostra commenti meno recenti
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 Commento
Matthew
il 10 Mag 2011
Risposta accettata
Più risposte (3)
Andrew
il 10 Mag 2011
0 voti
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
il 10 Mag 2011
0 voti
Perhaps interp1 to interpolate to the sampling rate you desire.
Honglei Chen
il 11 Mag 2011
0 voti
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.
Categorie
Scopri di più su Multirate Signal Processing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!