Resample produces unexpected vector length
3 views (last 30 days)
Show older comments
Commented: Alexis on 7 Aug 2021
I have two vectors of simultaneously recorded physiological signals, one is sampled at 20 kHz and the other at 1 kHz. I'd like to sample the latter upwards so they can be analysed together.
Length of the 20 kHz vector = 1228446
Length of the 1 kHz vector = 61423
1228446 / 61423 = 20
Makes sense to me! But the command
Returns a vector with length = 1228460, not 1228446. What am I missing? It's late here, so pointing out the obvious is appreciated.
Dave B on 7 Aug 2021
I think the error is in your arithmetic (?)
1228446 / 61423
1228460 / 61423
More Answers (0)
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!