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
Adam Danz
2019년 5월 5일
"...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.
Brittny Freeman
2019년 5월 6일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!