Is it possible to resample uniform data with a variable sampling frequency?
2 views (last 30 days)
Show older comments
Hello,
I am working on trying to replicate a synchronous resampling algorithm in matlab. One of the steps in the algorithm calls for you to resample your 1D signal with a variable sampling frequency. Thus, I am trying to use the resample function in matlab to do this,
y = resample(x,p,q)
However, for my needs, I need q to be a vector of numbers instead of a single integer. That way, each entry of the resampled signal vector, y, will be resampled with a slightly different resampling factor.
Is it possible to do something like this in Matlab? Could anyone kind of point me in the right direction if so? (If you need any additional details or data, I can provide it).
Thanks in advanced.
2 Comments
Adam Danz
on 5 May 2019
"...That way, each cell of the resampled signal, y, will be resampled with a slightly different resampling factor."
The output 'y' of resample() is a vector or matrix. You mentioned that 'y' is a cell. If your input 'x' are different sets of data, possibly stored in a cell array, one method would be to use a for-loop where you can specify the resampling factor for each iteration.
Answers (0)
See Also
Categories
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!