Is it possible to resample uniform data with a variable sampling frequency?

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

"...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.
Thanks for getting back to me Adam. I actually meant to say each "entry of the resampled signal vector ,y, will be resampled with a slightly different resampling factor". I used incorrect terminology in that sentence. I went back and corrected it. Thanks for pointing that out.

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

답변 (0개)

카테고리

질문:

2019년 5월 5일

편집:

2019년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by