Is it possible to resample uniform data with a variable sampling frequency?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Adam Danz
am 5 Mai 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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!